You are not logged in.

#1 2004-07-08 07:54:20

nkw
Member
Registered: 2004-03-26
Posts: 80

remote run a program and quit

Besides VNC, any other way to keep running a program on a remote Linux without keep a login? And late user can login to check the status of the running program?

Offline

#2 2004-07-08 08:47:17

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: remote run a program and quit

Well, depends what kind of programs you want to run. Some console programs can be run in the background. For console programs that can't be run in the background, there's Screen. (Some basic info about screen can be found in a link from this thread.) If you mean GUI programs, AFAIK VNC is the only one.

Offline

#3 2004-07-08 10:46:58

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: remote run a program and quit

You can fork and background an ssh process that executes a remote command.

ssh -f -n user@remotehost remotecommand

That keeps the remotecommand running on the remote host even if your ssh process dies (at least it seems to).

HTH,
farphel


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

#4 2004-07-08 14:38:37

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: remote run a program and quit

If you ever want to see the output of the program again (sounds like I'm a kidnapper...), check out screen.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2004-07-08 18:36:46

dpb
Member
From: Cyperspace?
Registered: 2004-04-11
Posts: 231

Re: remote run a program and quit

Xentac wrote:

(sounds like I'm a kidnapper...)

LMFAO  lol

Offline

Board footer

Powered by FluxBB