Boiling down to the smallest problem here is a simple python script that I want to run using nohup on linux. I run it using the following (on linux):
nohup python test.py &
The command seems to just not do anything, nothing is appended to nohup.out. If I run it without the & the output shows correctly on the terminal window. What am I missing?
import time
def test():
while(True):
print "Woke up!"
time.sleep(5)
if __name__ == "__main__":
test()