linux - 集群中的 nohup 多个命令

标签 linux nohup

我想在我的集群中运行多个命令后台,如下所示。但是它被中断了,没有成功完成。

nohup perl sgfa.pl -i 1.fa   & sleep 1
nohup perl sgfa.pl -i 2.fa   & sleep 1
nohup perl sgfa.pl -i 3.fa   & sleep 1

为什么?任何建议都是希望。谢谢。

最佳答案

你可以尝试这样的事情: /usr/bin/nohup $(/bin/bash -c 'for i in {1..3}; do/usr/bin/perl sgfa.pl -i $i.fa&/bin/sleep 1; done') &

您收到的错误消息是什么?

关于linux - 集群中的 nohup 多个命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42714825/

相关文章:

linux - 使用 bash 清理输出文件的最佳方法是什么?

unix - nohup-不需要nohup.out,但希望日志转到远程服务器上的其他文件

linux - scp作为后台工作?

linux - 为什么 NSS 模块在 Linux 上必须以 .so.2 结尾?

linux - 如何解释 linux df 命令结果

linux - Linux 下 Opera 未加载 GWT 页面

linux - 访问要重写的地址时出现错误 403

ubuntu - Google Cloud VM 中的后台进程在一段时间后终止

使用 nohup 执行 PHP

Linux无限循环与背景