![]() |
从perl脚本的ssh命令中调用matlab
嗨,我已经设置了无密码的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永远不会开始运行。为什么是这样? 谢谢 [B]回答:[/B] 这基本上是[URL="https://stackoverflow.com/questions/3097083/perl-fork-doesnt-work-properly-when-ran-remotely-via-ssh"]先前问过[/URL]的[URL="https://stackoverflow.com/questions/3097083/perl-fork-doesnt-work-properly-when-ran-remotely-via-ssh"][perl]问题[/URL]的重复部分–至少,答案是相同的。与ssh连接时,您没有控制终端。尝试ssh -o "BatchMode yes" user@host "bash -c runMe.pl arg1 arg2" 。 [url=https://stackoverflow.com/questions/3097403]更多&回答...[/url] |
所有时间均为北京时间。现在的时间是 01:14。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.