Starting script using ssh keeping nohup output on remote?
- From: Fu <futung.cheng@xxxxxxxxx>
- Date: Fri, 12 Sep 2008 13:05:47 -0700 (PDT)
Hi,
I am trying to launch a command through ssh.
I use something like
ssh -i user@host 'export REMOTE=myname; nice nohup ./my-restart'
The problem is that the output appears on the local server where I ran
this command and not on the remote machine.
If I run the command "nice nohup ./my-restart &" on the remote machine
directly then the nohup.out file is created and the output appears
there. This is what I want.
Also I find that if I put a & into the ssh command above then the
command doesn't work.
Any Ideas? If this isn't the best place to post this then please
advise as to the best spot.
Thank you,
Fu-Tung
.
- Follow-Ups:
- Prev by Date: Re: how to supply sftp with password?
- Next by Date: cannot connect through ssh after ssh-shutdown
- Previous by thread: Problem using PuTTY and Dropbear for port forwarding (ssh tunneling)
- Next by thread: Re: Starting script using ssh keeping nohup output on remote?
- Index(es):
Relevant Pages
|