#!/bin/bash

mkdir -p logs

python wonderbot.py comments > logs/comments_nohup.out

sleep 30

python wonderbot.py submissions > logs/submissions_nohup.out


#!/bin/bash

mkdir -p logs

nohup python wonderbot.py comments > logs/comments_nohup.out 2> logs/comments_nohup.err &

sleep 30

nohup python wonderbot.py submissions > logs/submissions_nohup.out 2> logs/submissions_nohup.err &


--- 
+++ 
@@ -2,9 +2,9 @@
 
 mkdir -p logs
 
-python wonderbot.py comments > logs/comments_nohup.out
+nohup python wonderbot.py comments > logs/comments_nohup.out 2> logs/comments_nohup.err &
 
 sleep 30
 
-python wonderbot.py submissions > logs/submissions_nohup.out
+nohup python wonderbot.py submissions > logs/submissions_nohup.out 2> logs/submissions_nohup.err &
 
Remove nohup from job launch script
