Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I use a Linux box (Ubuntu 2.6.15-28-amd64-generic) to remotely run calculations. The thing is, these calculations may last hours or even days, and as soon as I disconnect, the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4

    Running remote application while I'm not logged in.


    Hi,

    I use a Linux box (Ubuntu 2.6.15-28-amd64-generic) to remotely run calculations. The thing is, these calculations may last hours or even days, and as soon as I disconnect, the calculations are interrupted. So, the only solutions are: a) run the calculations locally or b) stayed connected all the time (which is almost impossible).

    Is there any command I can use to run the calculations remotely without me having to be connected all the time? The idea is connecting, run the program , log off, from time to time connect to see if everything is running and eventually get the results (which are automatically exported to a file).

    Thanks,
    Pinzao

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    You can:
    1. Run your calculations as a regular cron job, or as an at job (which would allow you to submit it when needed).

    2. Use the screen program to disconnect / reconnect ssh sessions.

    P.S. You can learn about screen on this forum.

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4

    Screen sofware versus 'nohup' command

    Thanks for the reply, I appreciate it. I will learn more about the screen software soon.

    Also, I just heard about a command called 'nohup' that seems to do the trick. Do you know it? Do you think it's better to use the screen program?

    Thanks,
    Pinzao

  4. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I'm familiar with nohup, but haven't used it for exactly what you are describing here. I would use whatever works best for you.

Posting Permissions

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