I run a script and print the output (out & err) to a file.
sudo <myScript> 2>&1 | sudo tee -a /path/output.txt
when I delete the outputfile everything seems to be ok (in terminal view).
sudo rm /path/output.txt
file is not there anymore, script runs as before.
But where my prints are going to now? Is it possible that the output.txt is automatically created (blank) again when it was deleted and the prints from my script where now logged in this blank output.txt? (without restarting the script from ssh)