at command not working?

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

at command not working?

Postby jumpjet » Mon Aug 24, 2009 16:55

Hi, a linux beginner here. I need to do a download at a later time, and I found that I can use at command. So, I tried issuing the command, with result like the following

Code: Select all
jumpjet@zeus ~ $ echo wget http://www.somewebsite.com/somefile.dat | at 11pm
warning: commands will be executed using /bin/sh
Cannot create atjob file /var/spool/at/atjobs/a00002013e2dc0: Permission denied


I installed the at package using Sulfur (sys-process/at-3.1.10.2). My system is latest Sabayon 4.2 x86_64.

Please help.

Thanks in advance.

JJ
jumpjet
Baby Hen
 
Posts: 2
Joined: Mon Aug 24, 2009 16:31

Re: at command not working?

Postby thecata » Mon Aug 24, 2009 17:45

try placing a sudo in front of the command or run that command as root
Catalin Pol
Location: Romania
Linux user since 2004; Sabayon user since 2006
--------
"Intelligence is the ability to avoid doing work, yet getting the work done" (Linus Torvalds)
thecata
Simple Hen
 
Posts: 75
Joined: Sun Nov 12, 2006 11:40
Location: Romania, Cluj

Re: at command not working?

Postby pepe999 » Mon Aug 24, 2009 22:31

I don't think that "sudo" works in this case but as root it should be without problems.. :)
HP dv6 2060ea
Sabayon 11 Mate
Win 7 still installed
Linux user no. 491024
User avatar
pepe999
Advanced Hen
 
Posts: 244
Joined: Fri Mar 06, 2009 19:24
Location: Manchester

Re: at command not working?

Postby jumpjet » Mon Aug 24, 2009 22:34

Hi thecata and pepe999, thanks for responding.

Yes, I tried using sudo but it failed with the same error.

Code: Select all
jumpjet@zeus / $ sudo echo wget http://www.somewebsite.com/somefile.dat | at 11pm
warning: commands will be executed using /bin/sh
Cannot create atjob file /var/spool/at/atjobs/a0000c013e3360: Permission denied
jumpjet@zeus / $


Then I tried using root. The command did not fail, however the wget did not get executed.

Code: Select all
zeus ~ # echo wget http://www.somewebsite.com/somefile.dat | at now
warning: commands will be executed using /bin/sh
job 6 at Tue Aug 25 04:30:00 2009

zeus ~ # date
Tue Aug 25 04:37:38 WIT 2009

zeus ~ # atq
6   Tue Aug 25 04:30:00 2009 a root


It's already passed 4.30am, and the file is not downloaded, and the job is still at the queue.

I wonder what happened?

Thanks again.

JJ
jumpjet
Baby Hen
 
Posts: 2
Joined: Mon Aug 24, 2009 16:31


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests