AIX - 'at' command


 
Thread Tools Search this Thread
Operating Systems AIX AIX - 'at' command
# 1  
Old 12-08-2009
AIX - 'at' command error - 0481-103 Cannot open a file in the /var/spool/cron/atjobs directory

I am working on AIX 5.2 platform and working with AIX command 'at' . May
I am getting a weird problem . I have a script which is scheduled to run
everyday.It uses 'at' command to call one java program.
Most of the times 'at' command works fine without any issue but sometimes 'at' command doesn't run and gives back following error.

0481-103 Cannot open a file in the /var/spool/cron/atjobs directory.

I looked for this on google , according to which this error occurs when
atjobs diectory doesn't exist.Although I didn't get the reason why sometimes atjobs is missing but while trying to reproduce the same thing on my development environment havin AIX 5.2 . I renamed atjobs folder to atjobs_bak and when I was able to reproduce the error I again renamed it back from atjobs_bak to atjobs.

Now what is happening what ever I am running with 'at' command is getting queued up in /var/spool/cron/atjobs directory.
And not running at all on the schduled time.

Please help me out if anyone is aware of this kind of scenario.

Last edited by techi_0408; 12-08-2009 at 03:50 PM..
# 2  
Old 12-08-2009
If you want the job to run everyday, why don't you use cron instead of at? You can submit the job once rather than having to submit it daily.
Padow
# 3  
Old 12-09-2009
Yeah I understand that but it is not running on a particular time everyday . It is dependent on a process which has to run before it and it has to start and stop the process everyday.Thats a requirement.

---------- Post updated at 03:08 PM ---------- Previous update was at 02:52 PM ----------

It is like everyday application server is started and stopped.There is no particular time , it is usually between 2:25 AM to 2:40 AM.Along with this 'at' job starts and stops.

---------- Post updated 12-09-09 at 07:51 AM ---------- Previous update was 12-08-09 at 03:08 PM ----------

I need to now this urgently...can anybody help me ?
# 4  
Old 12-09-2009
Why not implement it though via cron that way, that the cron script checks if the previous job has set a flag in the filesystem like an empty file and if it finds it, it will fire off the main script that you wanted to implement with at.
# 5  
Old 12-09-2009
hmm... actually script which calls at job has lot of logic before calling the at jobs.I have to change whole script . I am looking at the minimum changes to be done with the sctript. But what is a problem using 'at' . Is there some known issue with 'at' command which I am not aware of ?
# 6  
Old 12-09-2009
Generally there is no problem with at - we just wanted to name alternatives to it since you posted that it sometimes doesn't work.
# 7  
Old 12-09-2009
Which user is running the at job? Is it root or an application user?

Maybe the file permissions of a file in there doesn't allow an action to occur? Is the filesystem full?

I know there was a problem at one point with the at command not deleting the at job once it had been run.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies

2. AIX

I need help on AIX command

I'm new for aix...I need a command or script to check the high usage of cpu process and the physical cpu utilization... TIA Sumanth (9 Replies)
Discussion started by: sumanthupar
9 Replies

3. AIX

at command in aix

Hi I use this "at" command to unmount 12 filesystems in my aix server echo "ksh /usr/local/bin/umount.sh" | at now i want to schedule it on a daily basis. I know that it can be done via crontab. But Im just curious to know if daily wise scheduling can also be done via the "at" command ?... (1 Reply)
Discussion started by: samsungsamsung
1 Replies

4. AIX

help ma aix command

I don't know to aix command to check number of cpu, speed of cpu memory, size, memory type (ex. memory type chipkill) internal harddisk, size how many to seial I/O ? fibre network interface raid controller, raid type DVD-rom, speed DVD-rom aix version... (1 Reply)
Discussion started by: lovenid
1 Replies

5. AIX

Need AIX command

1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB 2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h. Thanks in advance (6 Replies)
Discussion started by: e263041
6 Replies

6. UNIX for Dummies Questions & Answers

Need AIX command

1.What is the equivalent of the command "ls -ltr -h" in AIX..Which will list all file name with their size in GB 2. What comand can be used to display the output of df -k in GB in AIX. In in solaris we do df -h. Thanks in advance (0 Replies)
Discussion started by: e263041
0 Replies

7. AIX

Which command in AIX 5L is replace updatelv in AIX 4.3?

When I import VG, it shows: 0516-622 synclvodm: Warning, cannot write lv control block data. I found AIX V4.3 have updatelv command can recovery LVB from VG, however, updatelv is not existed on AIX 5L, which command to replace it? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

8. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

9. UNIX for Advanced & Expert Users

AIX command help

I have this command in my script and it's working fine with AIX: ls init?*.ora 2>/dev/null | egrep -i -e "" the same command is failing in Solaris 10. does anyone have better idea how to make it work for both ? Thanks (2 Replies)
Discussion started by: talashil
2 Replies

10. Programming

command for hp-ux and aix

is there is any command for obtaining System manfuture detail lke Dell, IBM etc from HP-UX and AIX command. (0 Replies)
Discussion started by: janki0111
0 Replies
Login or Register to Ask a Question