1832541 Members
6043 Online
110043 Solutions
New Discussion

Re: at doesn't work

 
Vladimir Tihu
Advisor

at doesn't work


On hp-ux 11 I notice that when I program a job with at it stays in /var/spool/cron/atjobs and is not executed at the time it was scheduled; in fact it is not executed at all. Any idea of what reason can make at disregard it's jobs?
7 REPLIES 7
Jeff Schussele
Honored Contributor

Re: at doesn't work

Hi Vladimir,

Are you running this at job as root or as a normal user?
If the latter, do you have that user listed in /usr/lib/cron/at.allow ?
If neither at.allow or at.deny exist, then only root can run at jobs.

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

Re: at doesn't work

Umapathy S
Honored Contributor

Re: at doesn't work

Vladimir,
jobs will be allowed by normal users when they are in /usr/lib/cron/at.allow. Check /usr/lib/cron/at.deny. If both files are missing, then only root will be allowed to do at jobs.

check the man page for more details.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Vladimir Tihu
Advisor

Re: at doesn't work


Of course it is not a problem of permission because I run at as root; I think Pete may have a good idea, I have to check the patches BUT I do not have settings for those env variables LC_ALL, LC_CTYPE and LANG (they are undefined in my context).
Vladimir Tihu
Advisor

Re: at doesn't work


Temporarily solved by increasing the maximum # jobs in a queue (a14... instead of a4... in /var/adm/cron/queuedefs).

Jeff Schussele
Honored Contributor

Re: at doesn't work

Of course, silly me, I should have read your mind. Hmmm, I must be slipping....

My bad,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Vladimir Tihu
Advisor

Re: at doesn't work


Hi Jeff,

I don't think you were either sleeping or whatever else, but maybe sometimes you don't have time to read the question that you answer to. Here is what happens for ex. when you don't have the permission (at.allow etc.):
"
$at -f /test now + 1 minutes
you are not authorized to use at. Sorry.
"
But nothing is put in /var/spool/cron/atjobs!
Me I was reffering to jobs that are scheduled correctly but are not executed when the time comes...
Or maybe my question was so confusing?

Best regards,

Vladimir