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: | Using ssh remote for a nohup process |
|---|---|
| Date: | Sun, 2 Oct 2005 09:58:58 -0100 |
Here is my setup: AIX 5.2 ML05 to AIX 5.2 ML05 using openssh 3.7.1 I am trying to use remote command execution from machine A to machine B. On machine there is a shell script like this #!/usr/bin/ksh cd /dir/bin nohup ./foobar arg1 arg2 arg3 & echo $! > /dir/dir1/proc.pid exit 0 On machine a I am doing ssh machineb "sudo -u daemon_user /dir/bin/foobar.sh " The sudo command works without a password, I test it locally on machine b. If I run the remote ssh command all output from the script on machine b is printed to my screen. It appears the ssh/sudo combination is ignoring the nohup and &. I did not write this script, it was (poorly) provided by a vendor. Any tricks on getting this working. I searched the net and didn't find anything. Thanks in advance, Jim
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | howto port forward w/out remote session?, sean |
|---|---|
| Next by Date: | Problem compiling OpenSSH 4.2p1 on Tru64 UNIX 4.0F, Eric Liszka |
| Previous by Thread: | howto port forward w/out remote session?, sean |
| Next by Thread: | Re: Using ssh remote for a nohup process, Catalin Petrescu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |