[FZH] rhel系统程序后台运行的话直接变daemon么?

net_robber net_robber at timectrl.net
Mon Oct 15 06:41:14 UTC 2012


shell & 的用法 '&1' is not '& 1'

2012/10/15 xie yunpeng <woqimingweipeng在gmail.com>

> 最近在用rhel系统发现后台执行的程序直接变daemon,举个例子
> while.sh
> while [ 1 ];do
> sleep 1
> echo `date`
> done
> 然后直接sh while.sh >& 1.log &就变成daemon程序了,不使用nohup和disown等方法
> 是rhel系统是这样,还是有的bash版本是这样?
> --
> Fedora中文郵件列表:https://admin.fedoraproject.org/mailman/listinfo/chinese
>


More information about the Chinese mailing list