1834484 Members
3317 Online
110067 Solutions
New Discussion

Re: at problem

 
SOLVED
Go to solution
Adrian Hannelly
Occasional Advisor

at problem

Hello I am having an "at" problem.

The at command seem to work and adds a file into /var/spool/cron/atjobs however the cron daemon dosen't appear to be picking them up is there anything I need to set for cron to do this?
5 REPLIES 5
Michael Tully
Honored Contributor

Re: at problem

No, as long as the cron process is running, it should run. Have a look at the /var/adm/cron/log for your entry. Make sure that the command your running has executable permissions.
Anyone for a Mutiny ?
Sunil Sharma_1
Honored Contributor

Re: at problem

Hi,

Only requiment is cron daemon should be running.

Try to give full path of cmd/script which you are tring to run from at.
and see cron log file (/var/adm/cron/log).

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Steven E. Protter
Exalted Contributor
Solution

Re: at problem

ps -ef | grep cron

If you get nothing

/sbin/init.d/cron start

check ps again

For permanent startup, check /etc/rc.config.d/cron

CRON=1 to auto start the daemon-

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adrian Hannelly
Occasional Advisor

Re: at problem

I doesn't appear to be picking them up as it is leaving the files in /var/spool/cron/atjobs. I have since learn't that the previous admin managed to delete everything below /var/spool (don't ask) would this affect at?
Adrian Hannelly
Occasional Advisor

Re: at problem

Thank for all the help guys.

What the problem was the previous admin deleted everything below /var/spool/ and then manual recreated all directories.

This didn't affect cron but it appears to have effected the "at" functionality of cron. All that was needed in the end was a stop start of cron and we are back in action.