V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  atupal  ›  全部回复第 1 页 / 共 1 页
回复总数  1
2015-01-26 19:23:33 +08:00
回复了 yadam 创建的主题 问与答 bash 中的&符号能否一直保持后台运行的疑问
我一般都
$ (./xxx.sh 1>stdout.log 2>error.log & )

然后就是在 后台运行且 挂到 init 进程下,

要看输出就
$ tail -f stdout.log

要看 错误就
$ tail -f error.log
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2583 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 14:47 · PVG 22:47 · LAX 07:47 · JFK 10:47
Developed with CodeLauncher
♥ Do have faith in what you're doing.