diff options
author | Alib <aliboba@free.fr> | 2010-07-05 17:06:58 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-07-05 17:06:58 +0200 |
commit | 73d75c718b5017708065d0c39c73cded75062dac (patch) | |
tree | 4b37764a45ccc6ece48cc7606e248fd0477f099a /bin | |
parent | ebddc115d8243b31b7309b1aebd45ceda4132690 (diff) | |
download | istreamdev-73d75c718b5017708065d0c39c73cded75062dac.tar.gz istreamdev-73d75c718b5017708065d0c39c73cded75062dac.tar.bz2 |
fix long path for pid checks
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/istream.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/istream.sh b/bin/istream.sh index eb835e4..fdf6c66 100755 --- a/bin/istream.sh +++ b/bin/istream.sh @@ -63,7 +63,7 @@ sleep 1 FFPID=$! if [ ! -z "$FFPID" ] then - SPID=`\ps ax --format pid,cmd,ppid | grep "$FFPID$" | grep -v cat | awk {'print $1'}`; + SPID=`\ps ax --format "%p %c %P" | grep "$FFPID$" | grep -v cat | awk {'print $1'}`; if [ ! -z "$SPID" ] then echo $SPID > ./ffmpeg.pid @@ -79,7 +79,7 @@ sleep 1 SEGPID=$! if [ ! -z "$SEGPID" ] then - SPID=`\ps ax --format pid,cmd,ppid | grep "$SEGPID$" | grep segmenter | awk {'print $1'}`; + SPID=`\ps ax --format "%p %c %P" | grep "$SEGPID$" | grep segmenter | awk {'print $1'}`; if [ ! -z "$SPID" ] then echo $SPID > ./segmenter.pid |