Is the at scheduler daemon running?
ps ax | grep /usr/sbin/atd | grep -v grep
You say the job gets scheduled. Just to be sure, after executing the command, run
atq to verify the command is in the at spool queue. You should see the job file in
/var/spool/atjobs.
When you view the job in the spool directory you should see something like this:
Code:
#!/bin/sh
# atrun uid=1000 gid=1000
# mail slacky 0
umask 22
...
...
/usr/bin/eject
The middle of the text will be filled with environment variables.
Do you have a file at /usr/sbin/atrun?
Is /bin/sh linked to a valid shell command, such as /bin/bash?