Re: Run a command in SSH shell (and close SSH but keep command running)



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
.



Relevant Pages

  • Re: who flags on OSR5
    ... logged in user with command: ... On a box with about 220 users, all but 5 remote in terms of being not within ... Checking a few other smaller boxes shows almost the same thing. ... Sometimes my own ssh session shows up, sometimes nothing at all is retruned ...
    (comp.unix.sco.misc)
  • Re: Populat a NewRecord from Text boxes Revisited
    ... earlier post were a little wide of the mark. ... The Form has two text boxes ... I used a command button (the command button wizard, record operations,Add ... field (fldName in my example). ...
    (comp.databases.ms-access)
  • Re: Populat a NewRecord from Text boxes Revisited
    ... I am posting this question a second time because the responses to my earlier post were a little wide of the mark. ... I am using Access 2000 and I would like to make a data entry form with a two text boxes. ... I used a command button (the command button wizard, record operations,Add ... I have assumed that you have heeded previous advice to rename the Name field (fldName in my example). ...
    (comp.databases.ms-access)
  • RE: Problem: Combo boxes self-populating
    ... table structure of your database. ... I have created one row containing input, calculation and combo boxes about ... the other 14 Part Name combo boxes populate and default to the name of the ... command to Add Row in MS Excel. ...
    (microsoft.public.access.forms)
  • Re: date range selection and verify
    ... The safest way to do this would be a form with 3 unbound text boxes and a ... The first 2 boxes are the From and To dates. ... The command button performs the validation, ...
    (microsoft.public.access.queries)