vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Michael McGarry <replytogroup@nospam.org> wrote in news:CFEud.92977$EZ.23930@okepread07: > Hi, > > I would like to launch a program through SSH and detach before it > completes execution, anyone know how to do this? > 1) by lauching it into the background 2) by using batch |
| |||
| In comp.os.linux.setup IANAL_VISTA <IANAL_Vista@hotmail.com>: > Michael McGarry <replytogroup@nospam.org> wrote in > news:CFEud.92977$EZ.23930@okepread07: >> Hi, >> >> I would like to launch a program through SSH and detach before it >> completes execution, anyone know how to do this? >> > 1) by lauching it into the background > 2) by using batch Never heard you could use 'batch' for this? IIRC batch executes the specified prog if the load allows it, (low enough). What works is 'nohup': nohup progname & -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 360: Your parity check is overdrawn and you're out of cache. |
| |||
| Michael Heiming wrote: > In comp.os.linux.setup IANAL_VISTA <IANAL_Vista@hotmail.com>: > >>Michael McGarry <replytogroup@nospam.org> wrote in >>news:CFEud.92977$EZ.23930@okepread07: > > >>>Hi, >>> >>>I would like to launch a program through SSH and detach before it >>>completes execution, anyone know how to do this? >>> >> >>1) by lauching it into the background >>2) by using batch > > > Never heard you could use 'batch' for this? > > IIRC batch executes the specified prog if the load allows it, > (low enough). > > What works is 'nohup': > > nohup progname & > I tried nohup and & alone. Both cause SSH to block until the command completes. I do not want it to block. Michael |
| |||
| In comp.os.linux.setup Michael McGarry <replytogroup@nospam.org>: > Michael Heiming wrote: >> In comp.os.linux.setup IANAL_VISTA <IANAL_Vista@hotmail.com>: >> >>>Michael McGarry <replytogroup@nospam.org> wrote in >>>news:CFEud.92977$EZ.23930@okepread07: [..] >>>>I would like to launch a program through SSH and detach before it >>>>completes execution, anyone know how to do this? [..] >> What works is 'nohup': >> >> nohup progname & >> > I tried nohup and & alone. Both cause SSH to block until the command > completes. I do not want it to block. Sorry but I didn't understood what you were actually trying, please give us the exact commands. Does "nohup progname &" work? -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 16: somebody was calculating pi on the server |
| |||
| On Sat, 11 Dec 2004 18:01:14 +0100, Michael Heiming wrote: > In comp.os.linux.setup Michael McGarry <replytogroup@nospam.org>: >> Michael Heiming wrote: >>> In comp.os.linux.setup IANAL_VISTA <IANAL_Vista@hotmail.com>: >>> >>>>Michael McGarry <replytogroup@nospam.org> wrote in >>>>news:CFEud.92977$EZ.23930@okepread07: > [..] > >>>>>I would like to launch a program through SSH and detach before it >>>>>completes execution, anyone know how to do this? > [..] > >>> What works is 'nohup': >>> >>> nohup progname & >>> >> I tried nohup and & alone. Both cause SSH to block until the command >> completes. I do not want it to block. > > Sorry but I didn't understood what you were actually trying, > please give us the exact commands. Does "nohup progname &" work? man screen This does what the OP wants. Rinaldi -- Fights between cats and dogs are prohibited by statute in Barber, North Carolina. |
| |||
| In comp.os.linux.setup Rinaldi J. Montessi <rinaldi@senior.envision>: > On Sat, 11 Dec 2004 18:01:14 +0100, Michael Heiming wrote: >> In comp.os.linux.setup Michael McGarry <replytogroup@nospam.org>: >>> Michael Heiming wrote: >>>> In comp.os.linux.setup IANAL_VISTA <IANAL_Vista@hotmail.com>: >>>> >>>>>Michael McGarry <replytogroup@nospam.org> wrote in >>>>>news:CFEud.92977$EZ.23930@okepread07: >> [..] >> >>>>>>I would like to launch a program through SSH and detach before it >>>>>>completes execution, anyone know how to do this? >> [..] >> >>>> What works is 'nohup': >>>> >>>> nohup progname & >>>> >>> I tried nohup and & alone. Both cause SSH to block until the command >>> completes. I do not want it to block. >> >> Sorry but I didn't understood what you were actually trying, >> please give us the exact commands. Does "nohup progname &" work? > man screen This does what the OP wants. Yep, another viable solution offering much more flexibility but more complicated. However it's unclear what the OP is actually doing, 'nohup progname &' has always worked for my purposes, starting some long running prog and being able to log off from some ssh session, keeping the prog running. -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 342: HTTPD Error 4004 : very old Intel cpu - insufficient processing power |
| |||
| On Sat, 11 Dec 2004 18:21:08 +0100, Michael Heiming wrote: [...] >>> Sorry but I didn't understood what you were actually trying, >>> please give us the exact commands. Does "nohup progname &" work? > >> man screen This does what the OP wants. > > Yep, another viable solution offering much more flexibility but > more complicated. However it's unclear what the OP is actually > doing, 'nohup progname &' has always worked for my purposes, > starting some long running prog and being able to log off from > some ssh session, keeping the prog running. And this may be a function of the ssh client I'm using. I know if I begin a process in an ssh session 'nohup progname &' using PuTTY.exe (work w/win98 to home w/slack-10.0), when I logout the terminal hangs until the command completes. Rinaldi -- Mr. Cole's Axiom: The sum of the intelligence on the planet is a constant; the population is growing. |
| |||
| In comp.os.linux.setup Rinaldi J. Montessi <rinaldi@senior.envision>: > On Sat, 11 Dec 2004 18:21:08 +0100, Michael Heiming wrote: > [...] >>>> Sorry but I didn't understood what you were actually trying, >>>> please give us the exact commands. Does "nohup progname &" work? >> >>> man screen This does what the OP wants. >> >> Yep, another viable solution offering much more flexibility but >> more complicated. However it's unclear what the OP is actually >> doing, 'nohup progname &' has always worked for my purposes, >> starting some long running prog and being able to log off from >> some ssh session, keeping the prog running. > And this may be a function of the ssh client I'm using. I know if I begin a > process in an ssh session 'nohup progname &' using PuTTY.exe (work w/win98 > to home w/slack-10.0), when I logout the terminal hangs until the command > completes. Dunno, perhaps install a real OS, have been using things like that since Linux kernel 2.0 or so, can't really remember, never any problem. -- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 318: Your EMAIL is now being delivered by the USPS. |
| ||||
| Michael Heiming wrote: > In comp.os.linux.setup Rinaldi J. Montessi <rinaldi@senior.envision>: > >>On Sat, 11 Dec 2004 18:21:08 +0100, Michael Heiming wrote: > > >>[...] > > >>>>>Sorry but I didn't understood what you were actually trying, >>>>>please give us the exact commands. Does "nohup progname &" work? >>> >>>>man screen This does what the OP wants. >>> >>>Yep, another viable solution offering much more flexibility but >>>more complicated. However it's unclear what the OP is actually >>>doing, 'nohup progname &' has always worked for my purposes, >>>starting some long running prog and being able to log off from >>>some ssh session, keeping the prog running. > > >>And this may be a function of the ssh client I'm using. I know if I begin a >>process in an ssh session 'nohup progname &' using PuTTY.exe (work w/win98 >>to home w/slack-10.0), when I logout the terminal hangs until the command >>completes. > > > Dunno, perhaps install a real OS, have been using things like > that since Linux kernel 2.0 or so, can't really remember, never > any problem. > Hi, I tried screen, but it will not work from within ssh used as rsh. It gives "Must be connected to a terminal". I was trying "ssh -lmyname pear.blah.com screen mysim". replacing "screen mysim" with "nohup mysim &; exit" gives a bash shell syntax error unexpected token ';' Can anyone offer any advice? Thanks, Michael |