Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-03-2009, 11:54 PM   #1
LQ Newbie
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Post Running script in background

Hi All,

I'm quite new to Linux.
I have to run a python script on a different server. I want it to run in background as it takes around 4-5 hours to get completed. I use to access the server through "Putty" and after I disconnect the connection, the script also stops. I disconnected the connection after running the script in background.

If anyone could tell me the reason as to why this is happening, it would be helpful.

Old 03-04-2009, 12:11 AM   #2
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
Did you try to use GNU screen and run it inside screen? You don't even need to background it. If you close the terminal, and then open a new one, ssh to the remote host, and use screen -r you will recover the session just as it was.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop a process running in background (on a shell script) Azk00 Linux - Newbie 3 02-01-2008 04:24 AM
Bash script hangs upon starting another script in the background masea2 Linux - Software 4 11-13-2006 05:18 AM
logging script, running background how lhrt Linux - General 2 06-09-2006 10:06 AM
Running script in background skguha Linux - Newbie 7 04-02-2004 08:32 AM
Running a script in background on a remote machine TheCoffeeMug Linux - Networking 3 11-06-2003 10:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration