Is it possible to let a process started with nohup, write to stdout instead of in a file? or maybe in the file and on the screen?
nohup python start.py &
writes to nohup.out
, but I'd like it to output to the screen, nohup is only meant as a hedge when the connection breaks.
Best Answer
You can achieve this with a separate process to inspect the file, or by using a terminal multiplexer like
screen
ortmux
.nohup python start.py & tail -f nohup.out
The
tail -f
can be killed and restarted at will, without affecting the python process.screen python start.py
and dis-/re-connect at will.