http://www.perlmonks.org?node_id=998728


in reply to Windows run an exe print its output and cut it off after a time

G'day anshumangoyal,

perlport - alarm indicates that alarm is emulated under Win32. Please show the code you tried.

perlport - open says |- and -| are not supported under Win32. Perhaps this is related to your problem - if it is, perlfork provides a workaround.

How are you terminating $Command? kill, waitpid and their perlport links may be of interest.

-- Ken