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.




Network Security Secure-Shell
[Top] [All Lists]

Re: Using ssh remote for a nohup process

Subject: Re: Using ssh remote for a nohup process
Date: Mon, 3 Oct 2005 21:16:02 +0300
Hello,
try to redirect your standard output and standard error (like this):

nohup ./foobar arg1 arg2 arg3  2>/dev/null >nohup.out &

It works on linux, and I think that it will work on aix too.

Catalin.

On Sun, Oct 02, 2005 at 09:58:58AM -0100, Jim Horwath wrote:
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>