WebFaction
Community site: login faq

say a python script which takes several hours to finish ?

asked 21 Nov '13, 08:58

laike9m
29415
accept rate: 0%


If you're running the script as a foreground process in a regular SSH session, then the script will terminate when you exit the session.

To get around this, either run the script in the background with nohup, eg "nohup python2.7 myscript.py &", or use a terminal multiplexer like screen or tmux that will let you detach from a session and re-attach later.

permanent link

answered 21 Nov '13, 17:09

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×25

question asked: 21 Nov '13, 08:58

question was seen: 1,455 times

last updated: 21 Nov '13, 17:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM