Operating System - HP-UX
1834149 Members
2776 Online
110064 Solutions
New Discussion

at commands - lost at reboot or not?

 
SOLVED
Go to solution
Nick Brennan_2
Occasional Advisor

at commands - lost at reboot or not?

Are at commands stored in memory and lost at reboot, or stored in some cron-related file somewhere on the system?

Easy points for someone.........!

TIA
Ain't life grand......
6 REPLIES 6
Massimo Bianchi
Honored Contributor

Re: at commands - lost at reboot or not?

Hi,
they are stored in /var/spool/cron/atjobs

I think that they survive a reboot :)


Massimo
Sundar_7
Honored Contributor

Re: at commands - lost at reboot or not?

Hey Nick,

at commands are not lost.

They are stored in /var/spool/cron/atjobs/ directory with the JOBID as the filename.

Use at -l to list the at jobs scheduled

-- Sundar.
Learn What to do ,How to do and more importantly When to do ?
Nick Brennan_2
Occasional Advisor

Re: at commands - lost at reboot or not?

Thanks guys, sad I had to ask.....
Ain't life grand......
Jeff Schussele
Honored Contributor
Solution

Re: at commands - lost at reboot or not?

Hi Nick,

Yes, they'll survive. All atjobs result in an entry be written into /var/adm/cron/queuedefs.
man queuedefs
for further info.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Pete Randall
Outstanding Contributor

Re: at commands - lost at reboot or not?

Nick,

From the man page:

"The at and batch commands schedule jobs for execution by the cron daemon (see cron(1M))."

- and -

"An at or batch job consists of a two-part script stored in /var/spool/cron/atjobs that can be executed by the POSIX shell."

The jobs thus scheduled will survive a reboot just as any cron job does.


Pete

Pete
Nick Brennan_2
Occasional Advisor

Re: at commands - lost at reboot or not?

Yes, had realised it was related to cron, but the man pages don't appear to clearly define whether or not the pages are cleared out at boot time, and it's one of those questions...
Ain't life grand......