Using ssh remote for a nohup process
From: Jim Horwath (jim.horwath_at_rcn.com)
Date: 10/02/05
- Previous message: sean: "howto port forward w/out remote session?"
- Next in thread: Catalin Petrescu: "Re: Using ssh remote for a nohup process"
- Reply: Catalin Petrescu: "Re: Using ssh remote for a nohup process"
- Reply: Derek Martin: "Re: Using ssh remote for a nohup process"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 2 Oct 2005 09:58:58 -0100 To: secureshell@securityfocus.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
#!/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
- Previous message: sean: "howto port forward w/out remote session?"
- Next in thread: Catalin Petrescu: "Re: Using ssh remote for a nohup process"
- Reply: Catalin Petrescu: "Re: Using ssh remote for a nohup process"
- Reply: Derek Martin: "Re: Using ssh remote for a nohup process"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|