Results 1 to 3 of 3
Hi
I've used a simple rsh commad within my script "test_it", as below
vi test_it :
-------------
rsh pawantest /home/pawan/runtest param_file &
#pawantest is the boxname, runtest is an another ...
- 11-24-2008 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 40
rsh giving "connection refused" message, when executed from script ??
Hi
I've used a simple rsh commad within my script "test_it", as below
vi test_it :
-------------
rsh pawantest /home/pawan/runtest param_file &
#pawantest is the boxname, runtest is an another script to run
#the test and param_file is having the parameters
#runtest is also fine, I've seen the script at right location
While, I am in the same box "pawantest", if I fire the same command at the prompt screen,
/home/pawan
[pawan@pawantest] $ rsh pawantest /home/pawan/runtest param_file &
It runs fine. But, if I am executing the same from "test_it" script I am getting connection refused message and the script is not running further.
(1) /home/pawan
[pawan@pawantest] $ ./test_it
connect to address 172.32.16.246: Connection refused
connect to address 172.32.16.246: Connection refused
trying normal rsh (/usr/bin/rsh)
connect to address 172.32.16.246: Connection refused
connect to address 172.32.16.246: Connection refused
trying normal rsh (/usr/bin/rsh)
Don't know how its running fine at the prompt window, and giving error while executing it through a script ?
Am I doing anything incorrect or have to do some setting in rsh to make the script execute, without any error message.
Any help in this, will be greatly appreciated. Thanks in advance
Regards,
Pawan S.
- 11-25-2008 #2Just Joined!
- Join Date
- Jun 2006
- Posts
- 40
I did some tarcing of my script and found that, SA's (Sys Administrators) didn’t put the link for rsh back the way it was supposed to be.
I notified the concerned person, and the problem has now gone. Kudos...!!!
Thanks
Pawan
- 11-30-2008 #3Just Joined!
- Join Date
- Nov 2008
- Location
- Virginia, USA
- Posts
- 18
It's always a good idea to use full paths in your scripts.


Reply With Quote