摘要:
linux启动后,会默认打开3个文件描述符,0表示标准输入,1表示正确输出,2表示错误输出。 nohup ping www.baidu.com 1>result.out 2>result.out & #将正确输出和错误输出均写入result.out文件nohup ./program > /dev/n 阅读全文
摘要:
ps -ef|grep query_test.sh|grep -v grep #查看进程是否存在 ps -ef|grep query_test.sh|grep -v grep |awk '{print $2}'|xargs kill -9 阅读全文