Cron jobs with same pid

Thread Tools Search this Thread
Operating Systems AIX Cron jobs with same pid
# 1  
Old 12-09-2013
Cron jobs with same pid


I have an AIX6.1 machine and i noticed something "strange" in the server.
I noticed that each day there are times where 2 or 3 different cron jobs are running with same process id. How can this happen? I thought that pid is always unique for each process.
Is it a problem having this behaviour or not?

Thank you
# 2  
Old 12-09-2013
Could you give an example? E.g. relevant parts of your cron log?
What is your current maxpid? (Give value of ps -e | awk '$1+0>m {m=$1} END {print m}')
# 3  
Old 12-09-2013
an example is the following:
informix  : CMD ( /home/login/UTILITIES/CRONscripts/semscript.ids_logs_backupYEASE ) : PID ( 18481404 ) : Sun Dec  8 02:35:00 2013
Cron Job with pid: 18481404 Successful
root      : CMD ( /usr/lpp/diagnostics/bin/run_ssa_healthcheck 1>/dev/null 2>/dev/null ) : PID ( 18481404 ) : Sun Dec  8 15:00:00 2013
Cron Job with pid: 18481404 Failed

the value of the command that you wrote is 34734274
# 4  
Old 12-09-2013
So long as they're not running at the same time (and all child processes have terminated) then it's not a problem.

iirc, AIX uses a randomised allocation scheme for PIDs, so you may get PIDs recycled before they wrap.

EDIT: Some more discussion

Last edited by CarloM; 12-09-2013 at 09:52 AM..
This User Gave Thanks to CarloM For This Post:
# 5  
Old 12-09-2013
ok thank you all for your help
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron Jobs

How to see which cron jobs are not running? (2 Replies)
Discussion started by: rahul.raj1989
2 Replies

2. Red Hat

Cron jobs

I'm running cronjobs on a redhat 5.X. Cronjobs are getting failed frequently so how to find the root cause (2 Replies)
Discussion started by: karthik9358
2 Replies

3. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

4. Shell Programming and Scripting

cron jobs

Hi, please help on this am trying to exec the below mentioned cron jobs but its getting failed fro the past two days ###but when am trying to execte the cron by the times 23,29 18 * * * /export/home/inrvgo/thelak/ its getting exec properly please help on this #... (8 Replies)
Discussion started by: thelakbe
8 Replies

5. Shell Programming and Scripting

Help with cron jobs

Hi Frenz, How do we get a cron job running in background to foreground ? (3 Replies)
Discussion started by: mkalase
3 Replies

6. Linux

Cron jobs

Hi, I am a Linux administrator (newbie) in my company. The distro being used in the servers here is Centos 5.3 Just need to know, as a Linux administrator is it better for me to use /etc/crontab to set my cron jobs. I do not want to use the crontab -e to schedule my cron jobs. That means... (1 Reply)
Discussion started by: anaigini45
1 Replies

7. Solaris

cron jobs

how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT. 0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month) the above syntax is correct? Thanks (1 Reply)
Discussion started by: kurva
1 Replies

8. Linux

cron jobs

I created a php script. I'd like to have it run as a cron job every day at 10:30am. So i added 30 10 * * * /script.php to the cron file Is it possible to run the script on the command line to test it out ? (1 Reply)
Discussion started by: dannyd
1 Replies

9. Solaris

Cron Jobs

I'm trying to run cron jobs to start any inhibited processes after a system reboot. I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month. How can I write this to start every 15 min after after a reboot ... (2 Replies)
Discussion started by: Remi
2 Replies

10. Solaris

Cron Jobs

whats up, Have some questions about cron jobs, I am fairly new to the unix os. My cronjob sends all output to my mail, does anyone know how to redirect output to come out on the screen??? Thanks...... (6 Replies)
Discussion started by: lewisoco
6 Replies
Login or Register to Ask a Question