poster
2019-12-10, 20:41
嗨,我已经设置了无密码的ssh并设置了perl调用ssh -o "BatchMode yes" user@host "runMe.pl arg1 arg2"
runMe.pl使用给定的args调用matlab和函数run_online。
nohup matlab -nojvm -nodisplay -r "run_online('$imgfolder/$folder/', '$ARGV[0]$folder', '/homes/rbise/results/mitosis/$ARGV[0]/$folder/')" > out.txt < /dev/null &
由于某种原因,matlab永远不会开始运行。为什么是这样?
谢谢
回答:
这基本上是先前问过 (https://stackoverflow.com/questions/3097083/perl-fork-doesnt-work-properly-when-ran-remotely-via-ssh)的[perl]问题 (https://stackoverflow.com/questions/3097083/perl-fork-doesnt-work-properly-when-ran-remotely-via-ssh)的重复部分–至少,答案是相同的。与ssh连接时,您没有控制终端。尝试ssh -o "BatchMode yes" user@host "bash -c runMe.pl arg1 arg2" 。
更多&回答... (https://stackoverflow.com/questions/3097403)
runMe.pl使用给定的args调用matlab和函数run_online。
nohup matlab -nojvm -nodisplay -r "run_online('$imgfolder/$folder/', '$ARGV[0]$folder', '/homes/rbise/results/mitosis/$ARGV[0]/$folder/')" > out.txt < /dev/null &
由于某种原因,matlab永远不会开始运行。为什么是这样?
谢谢
回答:
这基本上是先前问过 (https://stackoverflow.com/questions/3097083/perl-fork-doesnt-work-properly-when-ran-remotely-via-ssh)的[perl]问题 (https://stackoverflow.com/questions/3097083/perl-fork-doesnt-work-properly-when-ran-remotely-via-ssh)的重复部分–至少,答案是相同的。与ssh连接时,您没有控制终端。尝试ssh -o "BatchMode yes" user@host "bash -c runMe.pl arg1 arg2" 。
更多&回答... (https://stackoverflow.com/questions/3097403)