Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSh remote commands not exiting [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Fri Jul 28, 2006 10:34 am    Post subject: SSh remote commands not exiting [SOLVED] Reply with quote

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
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Fri Jul 28, 2006 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message
randal1
Apprentice
Apprentice


Joined: 03 Oct 2005
Posts: 225
Location: England

PostPosted: Fri Jul 28, 2006 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum