Hi,
can anyone help me with this? I'm trying to start a small C program (foo.exe) from my perl program.
Once started the C program runs forever monitoring a directory for incoming files. I want to start this process but stop it when it outputs the following line to the screen:
'Waiting for files to arrive..'
How can start this process, monitor it's output, then kill it? Any help would be much appreciated.
Thanks in advance.
can anyone help me with this? I'm trying to start a small C program (foo.exe) from my perl program.
Once started the C program runs forever monitoring a directory for incoming files. I want to start this process but stop it when it outputs the following line to the screen:
'Waiting for files to arrive..'
How can start this process, monitor it's output, then kill it? Any help would be much appreciated.
Thanks in advance.