I am running a python script in background, but why does it still prints to console, even when piped to a file?
I tried the following command:
python script.py &
python script.py > output.txt &
I tried with a simple script:
print "hello world"
With
python script.py &
It still prints to console.
But
python script.py > output.txt &
works as intended and does not print to console.