Zombie process ?
Posted: Sun Jan 29, 2012 12:40 pm
Hi,
Set up a little download server : Ubuntu + Transmission daemon. Love it. Works so good !
Though I'm a linux enthusiast, I'm also a newbie... and confused with this :
I wrote a bash script (torrent-done-script-filename) that calls another script (which performs tests and processes the downloaded file). All works fine but my primary script never dies... the process becomes Zombie. I guess it has to do with exit status and/or PID file... but I'm not so good with shell. Could someone point me in the right direction, please ?
Thanks a lot.
matt.
downloaded.sh :
#! /bin/bash
if [ -f /home/matt/scripts/transmission/toprocess/$TR_TORRENT_HASH ]
then
read line < /home/matt/scripts/transmission/toprocess/$TR_TORRENT_HASH
$line &
fi
exit()
Set up a little download server : Ubuntu + Transmission daemon. Love it. Works so good !
Though I'm a linux enthusiast, I'm also a newbie... and confused with this :
I wrote a bash script (torrent-done-script-filename) that calls another script (which performs tests and processes the downloaded file). All works fine but my primary script never dies... the process becomes Zombie. I guess it has to do with exit status and/or PID file... but I'm not so good with shell. Could someone point me in the right direction, please ?
Thanks a lot.
matt.
downloaded.sh :
#! /bin/bash
if [ -f /home/matt/scripts/transmission/toprocess/$TR_TORRENT_HASH ]
then
read line < /home/matt/scripts/transmission/toprocess/$TR_TORRENT_HASH
$line &
fi
exit()