in reply to Re^7: Crontab "Can't open perl script", " No such file or directory"
in thread Crontab "Can't open perl script", " No such file or directory"
The suggestions were meant to be placed in the crontab, but that doesn't matter anymore, since the problem has been discovered:
/home/myuser/.Private on /home/myuser type ecryptfs (ecryptfs_check_de +v_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs +,ecryptfs_sig=cdf62344e76957d1,ecryptfs_fnek_sig=88d715cd172f27b9)
Yes, the home directory is encrypted, so it is not available when the user isn't logged in. One solution is to drop the scripts in a non-encrypted location (/opt or /usr/local or whatever suits your system) outside of the home directory and it'll work.
$ sudo mkdir /opt/myscripts $ sudo chown myuser:myuser /opt/myscripts # put scripts in /opt/myscripts
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Crontab "Can't open perl script", " No such file or directory"
by Anonymous Monk on Oct 09, 2014 at 21:17 UTC |