at command doesn't work

Bug #163810 reported by cut288 on 2007-11-19
Affects Status Importance Assigned to Milestone
at (Ubuntu)
Kees Cook

Bug Description

Wieliczka 18 November 2007

                                    Dear Sir

    I do us UBUNTU 7.04 feisty, I tried to execute file using <at command> without success.
I input “ at -f /usr/games/glchess 15:47 “ eg. , and received confirmation from shell to be executed but nothing happened afterwords.
 Even “atq” did not show anything. There were no jobs.

                                                                                  sincerely yours

I'm also having issues with using the at command. I have done the following:

at -f $(which epiphany-browser) now + 1 min (have the epiphany browser launched in one min time).
at -f /usr/games/glchess 15:47 (same as the original bug submitter)

running atq immediately after issuing the job will show it in the atq, but after the time assignment it will be removed from the queue.

only /etc/at.deny exist, my user is not one of those listed.

also, at mentions:
warning: commands will be executed using /bin/sh

based on this I have manually run the glchess program appended to /bin/sh and get the following:

christer@macbook:~$ /bin/sh /usr/games/glchess
/usr/games/glchess: 4: try:: not found
/usr/games/glchess: 5: import: not found
/usr/games/glchess: 6: Syntax error: word unexpected (expecting ")")

Changed in at:
status: New → Confirmed
Kees Cook (kees) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. As I understand the problem, this is correct behavior from "at", though perhaps the problem is that the error reports aren't being delivered to you. (Is local email delivery configured?) Check /var/mail for at errors.

 1) at runs like cron, it does not have your Xorg environment and cannot launch X applications without additional scripting, etc
 2) running /bin/sh /usr/games/glchess won't work (and isn't what at does), since you're forcing it to interpret the script as a shell script (it's not). when at runs, it uses sh for spawning shells (and will correctly execute scripts of any type), the warning is there to remind about the reduced environment and capabilities

Changed in at:
assignee: nobody → keescook
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers