in reply to Re: Windows run an exe print its output and cut it off after a time
in thread Windows run an exe print its output and cut it off after a time
"Emulated" or not, alarm works fine on Windows. As do both forms of piped open:
C:\test>perl -E"alarm 5; say(),sleep(1) for 1 .. 10" 1 2 3 4 5 Terminating on signal SIGALRM(14) C:\test>perl -E"$p=open I, '-|', 'ver'; say <I>" Microsoft Windows [Version 6.0.6001] C:\test>perl -E"$p=open O, '|-', 'find \"1\"'; say O for 1 .. 10" 1 10
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Windows run an exe print its output and cut it off after a time
by kcott (Archbishop) on Oct 12, 2012 at 17:29 UTC | |
by BrowserUk (Patriarch) on Oct 12, 2012 at 17:40 UTC | |
Re^3: Windows run an exe print its output and cut it off after a time
by VinsWorldcom (Prior) on Oct 12, 2012 at 17:01 UTC |