Spida has asked for the wisdom of the Perl Monks concerning the following question:
The idea is to let the program capture some data and parse its logfile afterwards. So I need to start the program, put it in the background, output something to show I am alive, and kill the programm. However, I couldn't find how to do it./path/to/program/that/would/output/something/and/run/forever > /dev/nu +ll 2>&1 & for i in `seq 1 10`; do sleep 1; echo -n "." done kill -9 $!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Executing a program, displaying some status, and killing it
by Roy Johnson (Monsignor) on Dec 08, 2004 at 00:47 UTC | |
by revdiablo (Prior) on Dec 08, 2004 at 01:15 UTC | |
by Spida (Acolyte) on Dec 12, 2004 at 16:58 UTC | |
by revdiablo (Prior) on Dec 13, 2004 at 17:53 UTC |