nohup command > myout.file 2>&1
#!/bin/sh
while true
do
echo "hello"
sleep 3
done
exit 0
nohup ./nohup.sh > myout.file 2>&1
# ps x |grep nohup.sh
7501 ? S 0:00 /bin/sh ./nohup.sh
7589 pts/2 S+ 0:00 grep nohup.sh
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |