View previous topic :: View next topic |
Author |
Message |
randal1 Apprentice


Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Fri Jul 28, 2006 10:34 am Post subject: SSh remote commands not exiting [SOLVED] |
|
|
Hi All
I am attempting to send a command via SSh from one Gentoo server to another...
Code: | ssh server2 "/etc/init.d/csync2 start" |
...the command is called and does various things in the script but just hangs at the last command...
Code: | * Starting csync2 ... [ ok ] |
I've tried Googling it and the best I can find is this (which doesn't look very promising) - http://www.nabble.com/ssh-SIGHUP-behavior-with-remote-commands-t1961203.html
If anyone could advise me/give me some more information I would be very grateful.
Many thanks
Last edited by randal1 on Fri Jul 28, 2006 2:20 pm; edited 1 time in total |
|
Back to top |
|
 |
limn l33t

Joined: 13 May 2005 Posts: 997
|
Posted: Fri Jul 28, 2006 11:53 am Post subject: |
|
|
This section of the OpenSSH FAQ may help.
Your link above includes the period after the 'html', so it results in a 404 error. |
|
Back to top |
|
 |
randal1 Apprentice


Joined: 03 Oct 2005 Posts: 225 Location: England
|
Posted: Fri Jul 28, 2006 2:20 pm Post subject: |
|
|
thanks for the reply (and sorry about the 404 error).
Excellent, that was just what I was looking for. My code now looks like this (and works perfectly)...
Code: | /etc/init.d/csync2 start > /dev/null 2>&1 & |
Thank you! |
|
Back to top |
|
 |
|