# using 'at' in startup script

**URL:** <https://forums.suse.com/t/using-at-in-startup-script/28647>\
**Category:** SLES Configure-Administer\
**Created:** [September 15, 2016, 5:25pm UTC](https://forums.suse.com/t/using-at-in-startup-script/28647 "2016-09-15T17:25:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![skunkboy](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@skunkboy](https://forums.suse.com/u/skunkboy)\
**Post date:** [September 15, 2016, 5:25pm UTC](https://forums.suse.com/t/using-at-in-startup-script/28647/1 "2016-09-15T17:25:21Z")

</div>

I’m trying to run something like : echo “/etc/init.d/postfix restart” | /usr/bin/at now + 5 minutes : in a startup script.

It is adding the entry to /var/spool/atjobs but never actually processing the file even thought atd is started up at boot.

The exact same thing works from the command line.

Thanks for any suggestions.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [September 15, 2016, 5:53pm UTC](https://forums.suse.com/t/using-at-in-startup-script/28647/2 "2016-09-15T17:53:06Z")

</div>

On 09/15/2016 08:34 AM, skunkboy wrote:[color=blue]

> I’m trying to run something like : echo “/etc/init.d/postfix restart” |  
> /usr/bin/at now + 5 minutes : in a startup script.
> 
> It is adding the entry to /var/spool/atjobs but never actually  
> processing the file even thought atd is started up at boot.
> 
> The exact same thing works from the command line.[/color]

Odd, this is; have you tried comparing the atjobs files to see if/how they  
differ when created the different ways? I presume the successful job was  
created as ‘root’ as well. Also, does restarting atd show anything  
interesting? Any errors in log files (/var/log/\*)?

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![skunkboy](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@skunkboy](https://forums.suse.com/u/skunkboy)\
**Post date:** [September 15, 2016, 6:01pm UTC](https://forums.suse.com/t/using-at-in-startup-script/28647/3 "2016-09-15T18:01:51Z")

</div>

Hardware clock was set 10 hours in the future, and during startup everything was being done in the future… 🙂

Fixed this and this seems to have addressed the issue.

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [September 15, 2016, 6:44pm UTC](https://forums.suse.com/t/using-at-in-startup-script/28647/4 "2016-09-15T18:44:03Z")

</div>

Great to hear; thanks for posting back your results.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
