1833701 Members
3430 Online
110062 Solutions
New Discussion

Re: Remsh

 
Ulf Furn
Regular Advisor

Remsh

Try once more.
I have a problem whit remsh.
I need to remote execute a script on a node in the cluster. I use this syntax in the script.
su tms -c 'remsh << _EOF_
/oracle/standby/s_appl /*remote script*/
_EOF_'

I don get any erros from the output.
And i did execute the script whit -x option to sh. No errors. I hope someone
can give me some tip.
Thanks //Stefan S
7 REPLIES 7
V. Nyga
Honored Contributor

Re: Remsh

Hi Stefan,

only 2 thoughts:
Maybe is 'su - tms' better?
Does rcp works?

Regards
Volkmar
*** Say 'Thanks' with Kudos ***
Ulf Furn
Regular Advisor

Re: Remsh

I have alredy tryed su -tms
same result.

Yes rcp is working.
//S
V. Nyga
Honored Contributor

Re: Remsh

Hi again,

su with space between - and tms?
*** Say 'Thanks' with Kudos ***
Ulf Furn
Regular Advisor

Re: Remsh

Yes whit space
Marco Santerre
Honored Contributor

Re: Remsh

Have you tried to use the -n option with the remsh command instead of redirecting your script to the sh?

ex :
su tms -c 'remsh -n /oracle/standby/s_appl/*remote_script*'
Cooperation is doing with a smile what you have to do anyhow.
Theresa Patrie
Regular Advisor

Re: Remsh

Hi Stephan,
Could you try running some simple script that echos something to the screen just to see if your able to run something remotely? I have run a script here with your exact syntax with no prolems. Maybe something is getting messed up in the script itself.
Theresa
This is my easy job!
Ulf Furn
Regular Advisor

Re: Remsh

Hi Marco yes a tried that.
Hi Tehresa. Hmmm well i gone do that.
and replace some commands whit
echo insted.
//S