atupal 最近的时间轴更新
atupal

atupal

V2EX 第 35123 号会员,加入于 2013-03-03 03:34:49 +08:00
atupal 最近回复了
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   ·   实用小工具   ·   3312 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 12:47 · PVG 20:47 · LAX 05:47 · JFK 08:47
Developed with CodeLauncher
♥ Do have faith in what you're doing.