in reply to Problems using Tk::ExecuteCommand

Yeah, unixisms arent portable

I would use threads instead, see

Re: Perl Tk nonblocking (threads queue), Capture::Tiny, Re: Tk with thread and stram data ( return )

  • Comment on Re: Problems using Tk::ExecuteCommand on windows (win32 win64)

Replies are listed 'Best First'.
Re^2: Problems using Tk::ExecuteCommand on windows (win32 win64)
by bliako (Abbot) on Jul 08, 2021 at 12:07 UTC

    I was wondering what "unixisms" you refered to and found in Tk::ExecuteCommand's source code this: open $h, $self->{-command} . ' 2>&1 |'; . Does anyone know if that's valid in win?

        So that's portable then for win.

        P.S. is CMD.EXE Perl's SHELL for windows?

      Do you have windows? Get windows and try stuff

      for me, the OPs program doesn't trigger the -tk -option -error -reported

      Tk::ExecuteCommand however does not work

      Can't stat /dev: No such file or directory at ... Proc/ProcessTable.pm

      Tk fileevent doesn't work on windows

        Do you have windows? Get windows and try stuff 

        nah, i prefer serenity and calmness. But the tests' results for this module stopped reporting anything mswin since a long time so you have a point.

Re^2: Problems using Tk::ExecuteCommand on windows (win32 win64)
by marbu (Initiate) on Jul 09, 2021 at 05:25 UTC
    Good morning and many thanks for the quick reply. Will try to test it the next days. Just like I said I'm totally new on perl programming and try to find a way through all the scripts here ath work. Thanks and have a great weekend. Markus
      Thanks again for all your help.

      Couldn't find a way through this problem. We now just use an older version of TK and it works. Just used in a small amount of scripts so we can ignore.

      Have a great day.

      Greetings Markus