LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-04-2009, 12:54 AM   #1
bob81
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.

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

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
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.
 
  


Reply


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 05:24 AM
Bash script hangs upon starting another script in the background masea2 Linux - Software 4 11-13-2006 06:18 AM
logging script, running background how lhrt Linux - General 2 06-09-2006 11:06 AM
Running script in background skguha Linux - Newbie 7 04-02-2004 09:32 AM
Running a script in background on a remote machine TheCoffeeMug Linux - Networking 3 11-06-2003 11:08 AM


All times are GMT -5. The time now is 08:10 PM.

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