in reply to OS command execution

Found the solution!
#!/usr/local/bin/perl my $cmd = "runme.bat"; open (DATA,"$cmd |"); while (my $line = <DATA>) { print "got $line"; } close (DATA);

Replies are listed 'Best First'.
Re: Re: OS command execution
by fsn (Friar) on Oct 14, 2002 at 16:06 UTC
    You might also wan't to set unbuffered output to get data when it's sent, and not when the buffer is full. Try setting $| = 1.