bash - gnu-parallel: exec: perl: not found -
i have 3 ec2 instances os centos7. i've installed parallel on 1 of instances (server1).
it's possible acces no ssh issue
ssh root@ip-10-0-xx-xx.xx-xx-1.compute.internal date
gave me date.
ssh $server echo works works
here i've created all_servers -file contains hostnames of servers (root@ip-10-0-xx-xx.xx-xx-1.compute.internal).
now i've written short bash-script name test:
#!/bin/bash echo 'hello'
i want run script (started on server1). on server2 , server3 @ same time.
parallel ./test.sh --sshloginfile all_servers
but it's showing academic tradition requires cite works base article on....
, after few enters it's showing hello (only on server1).
can explaining i'm doing wrong.
edit: tried without file:
parallel --sshlogin root@ip-10-0-xx-xx.xx-xx-1.compute.internal echo hello output: bash: line 0: exec: perl: not found
i tried too:
parallel --tag --nonall --slf all_servers
now get:
root@ip-10-0-0-xx.xx-xx-1.compute.internal bash: line 0: exec: perl: not found root@ip-10-0-0-xx.xx-xx-1.compute.internal bash: line 0: exec: perl: not found
this:
parallel ./test.sh --sshloginfile all_servers
is not same as:
parallel --sshloginfile all_servers ./test.sh
you want last.
perl
must installed on workers.
ssh remote perl -e \''print "ok\n"'\'
must return ok.
Comments
Post a Comment