Using ssh remote for a nohup process
From: Jim Horwath (jim.horwath_at_rcn.com)
Date: Sun, 2 Oct 2005 09:58:58 -0100 To: email@example.com
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
nohup ./foobar arg1 arg2 arg3 &
echo $! > /dir/dir1/proc.pid
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,