Computing.Net > Forums > Unix > rsh calls in ksh shell scripts -

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

rsh calls in ksh shell scripts -

Reply to Message Icon

Name: iggy7
Date: January 14, 2008 at 21:26:13 Pacific
OS: solaris 9
CPU/Ram: not sure
Product: not sure
Comment:

trying to call ksh scripts on other servers using rsh. Error is "command not found".

Logic is:

rsh localdev1 name /path/scriptname.ksh

i.e. rsh | host-machine name | path/scriptname

-permissions are not an issue. Not sure if I should be using SSH for this, or if rsh by default will use the name of the calling script as the host name, thus the script is not found. This is on an older ksh ver, not ksh 93.

Any help is appreciated.

-Mel.




Sponsored Link
Ads by Google

Response Number 1
Name: wollie
Date: January 16, 2008 at 08:04:00 Pacific
Reply:

well - "command not found"
either you misspelled the full path name to the script you want to execute on the remote machine or the script can not be found on the remote machine

rsh -l user host command
should work

cheers

wollie


0
Reply to Message Icon

Related Posts

See More


using functionality in ks... Using awk to prnt selecti...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: rsh calls in ksh shell scripts -

Traping Ctrl-Z in KSH Shell script www.computing.net/answers/unix/traping-ctrlz-in-ksh-shell-script/5241.html

shell script www.computing.net/answers/unix/shell-script/7305.html

Shell script to extract text www.computing.net/answers/unix/shell-script-to-extract-text/3999.html