Results 1 to 2 of 2

Thread: running remote command, then leave it running

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    running remote command, then leave it running

    HI,

    I have a script that will parse some data then print it out to a file.

    I'd like to set it running on a remote machine then leave (close the ssh session). But, I think the script stops working after that.

    How can I run the script remotely then leave and have it still running?

    Cron?

    thanx,

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Posts
    421

    Re:running remote command, then leave it running

    Start it with nohup in front like so:

    nohup /path/to/script &

    Output will be send to ./nohup.out (unless redirected elsewhere). If it's an interactive process you want to run check out screen.

Similar Threads

  1. Replies: 5
    Last Post: 04-30-2007, 08:43 PM
  2. Putting more commands behind an already running command
    By Uranus in forum Linux - General Topics
    Replies: 4
    Last Post: 11-22-2004, 10:52 AM
  3. Hello & running a command when xsession is closed
    By Pierre_Lambion in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 08-27-2002, 09:10 PM
  4. Anyone running KDE3?
    By ndogg in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 02-24-2002, 08:17 PM
  5. Red Hat running Apache
    By datamike in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 02-07-2002, 06:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •