November 21, 2024, 09:55:51 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: ssh - execute the script remotely / File not found: ''  (Read 8083 times)

Offline cloudsuser

  • New Member
  • Posts: 1
ssh - execute the script remotely / File not found: ''
« on: May 30, 2010, 07:27:27 AM »
ssh - execute the script remotely / File not found: ''

I am uisng amazon ec2-api-tool & ec2-ami-tool

i was unable to execute through ssh.
Getting error as

File not found: ''

The same script i can able to run directly in client machine successfully.

Through ssh i was uanble to run the script remotely
Source : myScript.sh
ec2-create-volume --size $1 --availability-zone $2

$ssh -i key.pem root@myhost ./myScript.sh 10 us-east-1a
File not found: ''

Note i have read write permission to my remote machine script myScript.sh
« Last Edit: May 30, 2010, 07:46:33 AM by cloudsuser »

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: ssh - execute the script remotely / File not found: ''
« Reply #1 on: June 11, 2010, 05:12:53 AM »
where the script reside i.e at which dir? is it reside under "/" or "/root"

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: ssh - execute the script remotely / File not found: ''
« Reply #2 on: July 23, 2010, 11:22:27 AM »
If you are to execute removely eucalyptus tools, you should be source the profiles first. Without the profiles, your eucalyptus binaries' path are not included in the PATH environment variable. :)