The command
runs fine and puts the computer into sleep mode when run from a command line, but when i try to run it by clicking on a script or on the fbpanel icon i have set up it gives this error in .xsession-errors
Quote:
sudo: no tty present and no askpass program specified
|
My user is in the sudoers file and there is no require tty option that i can find in /etc/sudoers to comment out.
Does anyone know a way i can do this?