Operating System - HP-UX
1847856 Members
1883 Online
104021 Solutions
New Discussion

Problems using 'at' and 'batch'

 
SOLVED
Go to solution
James Phillips
Occasional Contributor

Problems using 'at' and 'batch'

Hi Folks,

My 'at/batch' jobs are queueing up.

A whole bunch of 'sh' processes are created with a PPID equal to cron's PID.
Only when these shells are killed does the job get run.

Any ideas?

James Phillips
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: Problems using 'at' and 'batch'

James,

Sounds vaguely familiar. Check this thread of mine:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1cb03a7b3682d611abdb0090277a778c,00.html

I think you may have the same situation.

Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: Problems using 'at' and 'batch'

Are these batch jobs by any chance using su - someuser command rather than su someuser command. I suspect that you are sourcing .profiles and some of the code therein expects an interactive environment - which you ain't. Commands like tset and tabs are the likely culprits. Your commands need to explicitly set and export variables (or source another file to do this) rather than relying upon .profiles.

That's my guess, Clay
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: Problems using 'at' and 'batch'

PHCO_24702 introduced behavior whereby cron(1M) may no
longer
execute at(1) jobs.

This was fixed in PHCO_27141.

Pete

Pete
John Palmer
Honored Contributor

Re: Problems using 'at' and 'batch'

Note also that cron will only allow a certain number of at/batch jobs to be running at any time. The default is 4 at and 2 batch.

See man at and man queuedefs for more information.
James Phillips
Occasional Contributor

Re: Problems using 'at' and 'batch'

Thanks for all your responses...
especially Pete Randall.

I was amazed. Mid-way through the swinstall
of PHCO_27141, my at jobs were launched.
It wasn't even finished installing.

Anyway, thanks again.

James Phillips
Pete Randall
Outstanding Contributor

Re: Problems using 'at' and 'batch'

No problem, James. The only reason I ever found that one is because I was doing the "OK, nothing else makes sense, what changed recently?" routine and the answer came up patches.

Take care,
Pete

Pete