Results 1 to 5 of 5

Thread: Free program from terminal via ssh

  1. #1
    Join Date
    Jun 2010
    Beans
    36

    Free program from terminal via ssh

    I am running a program on a "supercomputer" in my department via ssh.

    The program is currently giving a progress output to my terminal.

    I want to close my terminal, and log off, without stopping the program on the remote computer.

    I have tried typing & and pressing enter but that didn't do anything.

    I'm tempted to just close the terminal, but the program has been running for 2 days (I gave it a lot of data to crunch) and I don't want to lose these last 2 days of work.

    I apologize for the very dumb question.

    Thankyou

  2. #2
    Join Date
    Jun 2010
    Beans
    36

    Re: Free program from terminal via ssh

    If it helps, my terminal runs BASH and the remote machine uses TCSH

  3. #3
    Join Date
    Sep 2007
    Location
    In here watching you!
    Beans
    Hidden!

    Re: Free program from terminal via ssh

    Bad advice deleted by author.
    Last edited by Old_Grey_Wolf; March 6th, 2011 at 05:12 PM.
    Use whatever OS or desktop works for you. Dual boot or use VMs if you want. Backup your computer regularly, and definitely before upgrading, partitioning, or installing an OS.

    No support requests by PM please.

  4. #4
    Join Date
    Sep 2009
    Beans
    160
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Free program from terminal via ssh

    You may or may not be able to background (Ctrl-Z, then enter "bg") and detach the process ("disown -h %[jobid]" when using bash, you'll have to look up the tcsh job control syntax). In the future just use screen for tasks like this.

  5. #5
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: Free program from terminal via ssh

    Use screen in future

    start screen then your program then press Ctrl-A D to detach it.

    then you can log out and leave it running

    next time you log on type

    Code:
    screen -r
    You can send a job to the background but if you logout it will kill it.

    You might be able to somehow save the process to a file then resume it inside screen but I wouldn't know how.

Tags for this Thread

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
  •