Chinaunix
标题:
请问怎样把带用管道连接起来的一串命令放入后台长期运行?
[打印本页]
作者:
niyunjiu
时间:
2009-12-15 16:59
标题:
请问怎样把带用管道连接起来的一串命令放入后台长期运行?
tail -f logfile | gearman -n -h 192.168.0.3 -f logger
我试过nohup 加 &
试过子shell,(command &)
都不行,只要窗口一关闭,程序就关闭了。
请大家指点一下
[
本帖最后由 niyunjiu 于 2009-12-15 17:08 编辑
]
作者:
timdcn
时间:
2009-12-15 17:04
加入/etc/rc.local试试
作者:
niyunjiu
时间:
2009-12-15 17:08
那得重启电脑才行
作者:
niyunjiu
时间:
2009-12-15 17:10
用screen搞定
作者:
kala_fly
时间:
2009-12-15 20:26
while :;do tail -f logfile | gearman -n -h 192.168.0.3 -f logger ;done &
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2