I am using screen so that I can run a job and log out of the servers, as these jobs take few hours to run. One of the tasks of these jobs is to save information in a file. But whenever I log out of the servers and log back in, I get the error of permission denied. The jobs run fine, and save the information in a file, if I am logged in the entire time (which i prefer not to do). I was wondering why when I log out, the jobs don't have permission to write the files.
while true; do date >> /tmp/date.log; sleep 2; done
also give you permission denied if you logout?