in reply to Re^3: Using Proc::Background and Win32
in thread Using Proc::Background and Win32
But since my script uses Gtk2, I can't really use the "Sleep" command in the final 'production' script, since the regular 'sleep' command will pause the processing of Gtk events.
I've never used gtk2, but it presumably has repeating timers like Tk. So, set up a repeating timer that does the kill.
Nice, so it looks like its working that way.... Weird, do you think I had a typo the first time I posted that, or do you think I can't set it to a variable and check it that way?
Dunno about a typo; but I strongly recommend you use 'perl' as the second arg to system.:
my $pid = system 1, 'perl', ".\\bg_script.pl $ARG1 \"$ARG2\" $ARG3 $AR +G4";
Without that, perl starts a shell, and the shell invokes perl; but the pid you get back is that of the shell not perl, so it doesn't tell you when the perl process ends.
I attempted using the CavaPackager t
Sorry. I have no knowledge of that at all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Using Proc::Background and Win32
by mmartin (Monk) on Oct 18, 2013 at 22:02 UTC | |
by BrowserUk (Patriarch) on Oct 18, 2013 at 22:24 UTC | |
by mmartin (Monk) on Oct 21, 2013 at 16:58 UTC |