0

Hi i have set up passwordless ssh set up and have perl call ssh -o "BatchMode yes" user@host "runMe.pl arg1 arg2"

runMe.pl calls matlab and the function run_online with the given args.

nohup matlab -nojvm -nodisplay -r "run_online('$imgfolder/$folder/', '$ARGV[0]$folder', '/homes/rbise/results/mitosis/$ARGV[0]/$folder/')" > out.txt < /dev/null &

for some reason matlab never starts running. why is this?

thanks

msandbot
  • 221
  • 1
  • 4
  • 13

1 Answers1

2

This is substantially a duplicate of the [perl] question that was asked immediately previously to this one -- at least, the answer is the same. You have no controlling terminal when you connect with ssh. Try ssh -o "BatchMode yes" user@host "bash -c runMe.pl arg1 arg2".

Community
  • 1
  • 1
Ether
  • 53,118
  • 13
  • 86
  • 159