Re: ntpd -s via ssh remote command 'hangs'

2014-10-07 Thread Daniel Melameth
On Mon, Oct 6, 2014 at 6:34 PM, Philip Guenther wrote: > On Mon, Oct 6, 2014 at 2:09 PM, Tor Houghton wrote: >> Hi, >> >> Dumb question: I'm running 'sudo ntpd -s' as part of a remote command to an >> OpenBSD guest[*]; unless I add a 'pkill sshd' to the end of the remote >> command, e.g. >> >>

Re: ntpd -s via ssh remote command 'hangs'

2014-10-06 Thread Tor Houghton
On Mon, Oct 06, 2014 at 05:34:34PM -0700, Philip Guenther wrote: > > By itself, one of the ntpd daemons will keep open the stdin/out/err it > was started with, which in this case will be the pipe or tty created > by of the ssh server. Aha. Thank you very much for the explanation. > > The easies

Re: ntpd -s via ssh remote command 'hangs'

2014-10-06 Thread Philip Guenther
On Mon, Oct 6, 2014 at 2:09 PM, Tor Houghton wrote: > Hi, > > Dumb question: I'm running 'sudo ntpd -s' as part of a remote command to an > OpenBSD guest[*]; unless I add a 'pkill sshd' to the end of the remote > command, e.g. > > ssh guesthost 'sudo pkill -9 ntpd && sudo ntpd -s && date && pkil

Re: ntpd -s via ssh remote command 'hangs'

2014-10-06 Thread Giancarlo Razzolini
On 06-10-2014 18:09, Tor Houghton wrote: > Hi, > > Dumb question: I'm running 'sudo ntpd -s' as part of a remote command to an > OpenBSD guest[*]; unless I add a 'pkill sshd' to the end of the remote > command, e.g. > >ssh guesthost 'sudo pkill -9 ntpd && sudo ntpd -s && date && pkill sshd' > >

ntpd -s via ssh remote command 'hangs'

2014-10-06 Thread Tor Houghton
Hi, Dumb question: I'm running 'sudo ntpd -s' as part of a remote command to an OpenBSD guest[*]; unless I add a 'pkill sshd' to the end of the remote command, e.g. ssh guesthost 'sudo pkill -9 ntpd && sudo ntpd -s && date && pkill sshd' the ssh connection won't disconnect. Why is this ('sudo