nohup

celery2199
nohup

nohup /u2/dxbin/c003_1 >/tmp/1.dat > /tmp/null &
nohup sz -b /tmp/1.dat >/tmp/null &
sleep 10

哪里不对啊!运行时出现Sending output to nohup.out

developing_T
Sending output to nohup.out 不对么? 是把你的输出结果定向到 nohup.out 里

mocou
是什么系统
如果是aix,那么无论是否将nohup的输出重定向到终端,输出都会将附加到当前目录的nohup.out中

celery2199
是UNIX的!运行时不想让它出现Sending output to nohup.out

mocou
nohup /u2/dxbin/c003_1 >/tmp/1.dat 2> /tmp/null &
nohup sz -b /tmp/1.dat >/tmp/null 2>&1 &
试试

是什么UNIX呀

celery2199
[quote]原帖由 [i]mocou[/i] 于 2006-2-24 09:30 发表
nohup /u2/dxbin/c003_1 >/tmp/1.dat 2> /tmp/null &
nohup sz -b /tmp/1.dat >/tmp/null 2>&1 &
试试

是什么UNIX呀 [/quote]


谢谢!这样是可以的!但为什么不能循环执行呢!我的是Solaris 的!

mocou
不明白,什么循环执行?

celery2199
就是说即使推出shell后,nohup后的命令还是应该继续执行的??

doni
sz是基于终端的,你都退出的,你让文件sz到哪儿?

doni
还有如果[code]
cmd1 > file1
cmd2 file1[/code]
cmd2的运行必需在cmd1之后的话,这样是不行的[code]
nohup cmd1 > file1 &
nohup cmd2 file1 &[/code]
LZ想想为什么,不知道的话,就该补课了
要这样[code]
(nohup cmd1 > file1; nohup cmd2 file1) &[/code]