【发布时间】:2015-04-17 21:36:47
【问题描述】:
我们有脚本,它使用 nohup 在后台进行一些处理并触发工作。当我们从 Oracle OEM 调度这个脚本(或者它可以是任何调度程序作业)时,我看到以下错误并将状态显示为失败,但脚本实际上完成没有问题。使用 nohup 启动备份地面作业时如何正确退出脚本?
Remote operation finished but process did not close its stdout/stderr
文件:test.sh
#!/bin/bash
# do some processing
...
nohup ./start.sh 2000 &
# end of the script
【问题讨论】: