Running scrapy in the background (Ubuntu)
3 answers
The simplest solution is to use it nohup
along &
with the following syntax:
nohup python parser.py &
As long as the suffix &
runs it in the background, closing the session will kill the process anyway. nohup
creates a session independent process suitable for all kinds of environments (like SSH sessions and remote servers for example) and saves all console output to a log file.
+7
source to share