Background Job "Stopped" with SSH
来源:互联网 发布:泗洪网络问政12345 编辑:程序博客网 时间:2024/05/12 15:28
运行了一个后台程序,此程序调用SSH远程执行另外的任务,当多个这样的后台程序执行的时候,状态经常从Running 变为Stopped,导致程序中断。
解决办法,覆盖三个I/O,具体参考:http://en.wikipedia.org/wiki/Nohup
Overcoming hanging
Note - Nohupping backgroundedjobs is typically used to avoid terminating them when logging off from aremote SSH session. A different issue that oftenarises in this situation is that ssh is refusing to log off("hangs"), since it refuses to lose any data from/to the backgroundjob(s).[6][7] Thisproblem can also be overcome by redirecting all three I/O streams:
nohup./myprogram > foo.out 2> foo.err < /dev/null &
Also note that a closingSSH session does not always send a HUP signal to depending processes. Amongothers, this depends on whether a pseudo-terminalwasallocated or not.[8]
- Background Job "Stopped" with SSH
- recover stopped job
- ABAP-Debug background job
- Debug background job
- 程序实现background job
- SAP定义Background Job
- OO ALV background job问题
- 通过事件触发background job
- 通过事件触发background job
- ST12 performance tuning background job
- Git: ssh.exe has stopped working
- Resque a background job ruby system
- exit shell background job got killed?
- 后台运行进程(background job)
- how to debug the background job
- How to trace background job using ST12
- Background processing with IntentService class
- Tutorial:background detection with opencv
- 离开团队,你将什么都不是(转载)
- 对于TextField的一点总结具体说的是对TextField的事件
- 替换map的key并通过反射给实体类赋值(做接口或对比字段常用到)
- strspn() 函数返回在字符串中包含的特定字符的数目。
- 使用PHP开发自己的MVC框架
- Background Job "Stopped" with SSH
- pid_t的类型定义
- 2440 的mmu初始化部分
- 无法运行SDK manager,提示Failed to convert path to a short DOS path: C:\Windows\system32\java.exe的解决办法!
- 软复位方法
- 感情世界
- Linux系统的启动流程
- Ural 1654 Cipher Message
- rman删除归档