You are not logged in.
Pages: 1
I can use the command hibernate in the shell since I updated to debian/sid, and since then I can also hibernate when logging out in xfce, so I'm assuming these facts are correlated and I'm asking here, if someone points me to the place I should be asking I would be thankful.
The point is that I can use the command hibernate as the superuser, but cron cannot use that command. It doesn't matter if I set the command directly in crontab or if I use a script with the command in it, I get the error "command not found". This doesn't happen to me as the superuser in the shell, where the command works perfectly. I have took a look in the .bash_aliases file, but it is not there, so I can't find the source of the discrepancy.
Thank you very much.
Offline
For reasons of security, cron does not use any default environment variables, so $PATH is not set.
So if the command on your console would be 'hibernate', you would need to put its full path into the crontab:
/usr/bin/hibernate
hth,
herd
Offline
Pages: 1
[ Generated in 0.005 seconds, 7 queries executed - Memory usage: 514.44 KiB (Peak: 522.52 KiB) ]