Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to force setenv while rsh?

Status
Not open for further replies.

suhaimi

Technical User
Aug 3, 2001
71
US
Hi all,
How could I force setenv while doing rsh? Whenever I do this,
hostA> rsh hostB "setenv ORACLE_SID TEMP;echo $ORACLE_SID"
PROD8
it'll return something else not "TEMP". Suppose:
hostA> rsh hostB "setenv ORACLE_SID TEMP;echo $ORACLE_SID"
TEMP

Please help.
Thanks,
Suhaimi
 
what does
rsh hostB "echo $SHELL"
say?

Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
hostA> rsh hostB "echo $SHELL"
/bin/csh
 
I just found out you have to use ' instead of "
eg:
[fp@admin6] % echo $SHELL
/bin/csh
[fp@admin6] % rsh spqr "echo $SHELL"
/bin/csh
[fp@admin6] % rsh spqr 'echo $SHELL'
/usr/bin/tcsh
[fp@admin6] % rsh spqr
fp@SPQR:~: echo $SHELL
/usr/bin/tcsh
fp@SPQR:~:


Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top