Re: Starting background process in ssh session
dking_at_pimpsoft.com
Date: 09/01/05
- Previous message: Roberto C. Sanchez: "Re: Starting background process in ssh session"
- In reply to: Roberto C. Sanchez: "Starting background process in ssh session"
- Next in thread: Roberto C. Sanchez: "Re: Starting background process in ssh session"
- Reply: Roberto C. Sanchez: "Re: Starting background process in ssh session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "Roberto C. Sanchez" <roberto@familiasanchez.net>, debian-user@lists.debian.org Date: Thu, 01 Sep 2005 14:52:18 -0700
You could do this:
nohup $command
But I always usea trick I find works with bash, so when your in a
bash shell do this:
#start another bash shell
bash
#start your background job
command &
#exit the subshell
exit
#exit your ssh connection
exit
That should work.
- D
On 1 Sep 2005 at 17:33, Roberto C. Sanchez wrote:
> I occasionally log into a machine remotely and start a process in the
> background:
>
> command &
>
> However, when I log out of the machine, the ssh process on my local
> machine blocks. I guess that it is becuase the remote still has jobs
> running. Is there a way to get it start the process in the background
> and then detach from the shell? I have already tried this:
>
> exec command &
>
> However, it results in the same behavior. It is really a bit annoying
> to have to kill the ssh process on my end to terminate the connection.
> I really should be able to do something that lets me logout normally.
>
> -Roberto
>
> --
> Roberto C. Sanchez
> http://familiasanchez.net/~roberto
>
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Roberto C. Sanchez: "Re: Starting background process in ssh session"
- In reply to: Roberto C. Sanchez: "Starting background process in ssh session"
- Next in thread: Roberto C. Sanchez: "Re: Starting background process in ssh session"
- Reply: Roberto C. Sanchez: "Re: Starting background process in ssh session"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|