ssh to call script on unix

June 16, 2009 at 05:25:53
Specs: UNIX AIX
Hi All ,

I need to call a script X on server A from server B using ssh
script X inturn calls another script Y on server A itself.

My problem is that it says that script Y is not found.

My ssh setup is proper.
I m using following command
ssh user@A sh X

please help me on this.


See More: ssh to call script on unix

Report •


#1
June 16, 2009 at 12:36:23
rather than call it is a

"sh scriptname"

make sure the script has the appropriate shell declaration line then call it as

"/full/path/to/scriptname"

ssh user@host /full/path/to/scriptname


Report •

#2
June 16, 2009 at 23:43:17
Thanks Buddy.
Also if i call inner Script Y by its full path in script X it works.


Report •

Related Solutions


Ask Question