nohup failure
I have a script as follows:
/usr/openwin/bin/xhost +
hostname=`hostname`
display=`awk ' /'$hostname'/ {print $1":0.0"}' /etc/hosts`
(echo "login"
sleep 2
echo "password"
echo "export DISPLAY=$display"
echo 'nohup ./command &'
sleep 5
exit) | telnet XXX.XXX.XXX.XXX
It is running in a KORN shell. After the 5 secong sleep, both the TERMINAL and the BACKGROUND process exit.
How can I keep the BACKGROUND process running?
Any help would be appreciated.....
|