I am running a script that calls another script through an ssh connection.
My script executes the following command:
ssh $cluster "bash $create 2 2 $parts"
where $cluster
is the ssh line, and $create
is the absolute path of the bash script on the target machine. I run a ssh $cluster "mkdir $serialized/$number"
few lines earlier, which works fine.
However, this command returns me:
bash: /data/.../create.bash 1 2 8: No such file or directory
The file is on the computer, and I can execute the command there, but I cannot figure out how to do this from a script on top of ssh. I tried another command, always get this exception.
Thank you for your help!
source
share