1830657 Members
29857 Online
110015 Solutions
New Discussion

Remote Shell !

 
SOLVED
Go to solution
Karunanidhi.S
Occasional Contributor

Remote Shell !

Hi all !
I want to start a process in remote machine using "remsh". But the catch is, even if I close the shell (or kill the shell)from which I start the process, the process should continue to run in the remote machine. Is that possible ? Your inputs please....

Regards,
S.Karunanidhi.
7 REPLIES 7
Ron Bromwell
Frequent Advisor

Re: Remote Shell !

Don't know if this will help, but can you try to do it in the background?
i.e.

remsh &
life's a journey, not a destination
Tommy Palo
Trusted Contributor

Re: Remote Shell !

Try using "nohup" (no hang up).
The -n option to "remsh" could also be valuable
Keep it simple
Victor BERRIDGE
Honored Contributor

Re: Remote Shell !

nohup should be used otherwise your process will be orphaned at exit

Regards

Victor
federico_3
Honored Contributor

Re: Remote Shell !

you can perform your request like this:

in the .rhosts on the user (remote one) home directory in the remote machine on which you are trying to start your process, add :

local_hostname username

then type:

remsh remote_machine -n "command " &


regards,

federico
Tony Constantine_1
Regular Advisor

Re: Remote Shell !

Why don't you create a script file and put this into the crontab
Albert E. Whale, CISSP
Honored Contributor
Solution

Re: Remote Shell !

Not only is it possible, but I highly recommend that if you start a process on a remote machine which is going to take any length of time that you add the keyword - nohup.

whatever string you use to start the command on the remote machine, preface it with the nohup command and it will ignore all normal interruptions.

Hope that helps!
Sr. Systems Consultant @ ABS Computer Technology, Inc. http://www.abs-comptech.com/aewhale.html & http://www.ancegroup.com
Rainer_1
Honored Contributor

Re: Remote Shell !

try this

remsh "nohup command >/dev/null 2>&1 &" &