Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a script that is supposed to run hourly. It was working fine for a while and then it seemed to stop working after some system updates were applied. At that point it stopped working and presented the error below in /tmp/greatscript.log

/bin/sh: /home/administrator/greatscript.sh: not found

Here is the crontab. Really basic, it should work no problem.

2 * * * * /home/administrator/greatscript.sh >/tmp/greatscript.log 2>&1

Here's where it gets really weird, I just realized that if administrator is logged in, the cron fires and the script works great. But if administrator is logged out:

/bin/sh: /home/administrator/greatscript.sh: not found

share|improve this question
    
Did you install ubuntu with an encrypted home directory? What is the output of the mount command when administrator is logged in. –  becomingwisest Jan 12 '13 at 21:23
    
The home directory is encrypted! –  Cronfused Jan 12 '13 at 22:25
add comment

1 Answer

Move the script to some unencrypted location like /usr/local/bin/.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.