Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Starting daemon using ssh |
|---|---|
| Date: | Wed, 3 Nov 2004 19:26:00 -0500 |
On Nov 2, 2004, at 2:19 AM, Binninger, Martin wrote:
Hi!
While trying, to start a daemon on a remote machine using ssh, the client
doesn't return to the local prompt after performing the start-up of the
daemon. I'm using openssh 3.7.1p2, ssh-version 2.0 on Tru64 as the os.
The command, I'm executing is the following:
ssh -i <KEY> <USER>@<SERVER> "/usr/local/bin/sudo /<PATH>/daemon start &&
echo 'done' "
This results in: - starting daemon - writing 'done' to stdout - nothing else, especially no return to the local prompt
But: When I stop the daemon on the remote site (while the ssh-session is
still active but kind of stuck), the local prompt returns (so: no further
stucking)!
This made me try the next command (new here: "/usr/bin/nohup"): ssh -i <KEY> <USER>@<SERVER> "/usr/local/bin/sudo /usr/bin/nohup /<PATH>/daemon start && echo 'done' " ... same difference.
"( ( /usr/local/bin/sudo /path/daemon start ) & ) &"
-- Quidquid latine dictum sit, altum sonatur. Whatever is said in Latin sounds profound.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Starting daemon using ssh, Binninger, Martin |
|---|---|
| Next by Date: | Re: Starting daemon using ssh, Kieran.Tully AT acm.org |
| Previous by Thread: | Starting daemon using ssh, Binninger, Martin |
| Next by Thread: | Re: Starting daemon using ssh, Kieran.Tully AT acm.org |
| Indexes: | [Date] [Thread] [Top] [All Lists] |