Re: Run a command in SSH shell (and close SSH but keep command running)
- From: Vahis <waxborg@xxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Feb 2009 05:58:43 +0200
raz230 wrote:
Hello,
I have a command that I run on one of my boxes (I scp files from box
(a) to box (b) and then I remove them). I don't cron this because the
conditions that result in the need for this vary and it's intermittent
and this entire situation is temporary.
My question is: how can I login to box (a) ; enter the command and
logout of SSH without terminating my command?
Does /path/to/command.sh & do it?
As others have said, screen.
It's running _always_ here, couldn't live without it :)
There are many howtos, here's one:
http://jmcpherson.org/screen.html
Vahis
--
http://waxborg.servepics.com
"I can certainly imagine the Linux kernel becoming obsolete -
anything else would just be sad, really, in the big picture."
Linus Torvalds, July, 2008
.
- References:
- Prev by Date: Re: Run a command in SSH shell (and close SSH but keep command running)
- Next by Date: Re: Run a command in SSH shell (and close SSH but keep command running)
- Previous by thread: Re: Run a command in SSH shell (and close SSH but keep command running)
- Next by thread: Re: Run a command in SSH shell (and close SSH but keep command running)
- Index(es):
Relevant Pages
|