Xfce Forum

Sub domains
 

You are not logged in.

#1 2009-06-11 13:30:44

Invisible
Member
Registered: 2008-10-11
Posts: 23

The magic of hibernation

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

#2 2009-06-16 20:08:15

herd
Member
From: Germany
Registered: 2006-05-18
Posts: 143
Website

Re: The magic of hibernation

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

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 9 queries executed - Memory usage: 513.09 KiB (Peak: 514.01 KiB) ]