Visit Our UNIX and Linux User Community

Conflict with PIDs

Thread Tools Search this Thread
Operating Systems Solaris Conflict with PIDs
# 1  
Old 04-23-2010
Conflict with PIDs

I am trying to determine the root cause of a java process that dies trying to startup during it's cron job.

I did go ahead and change the time that it starts up in the cron file and now it starts successfully.

However is there a way to determine what PID a process was attempting to get when it failed?
# 2  
Old 04-23-2010
There never will be a pid conflict on launching a process in a stable system. Does your code expect to have a given pid? Or find a given pid somewhere? pids do not generally cause aborts.

What error are you getting?
# 3  
Old 04-23-2010
That's one of the problems we are not getting any errors in any of the logs accept of the specific process and it just says process stopped.

But it's when it's trying to pick up a pid it stops
# 4  
Old 04-23-2010
Originally Posted by vedder191
But it's when it's trying to pick up a pid it stops
That doesn't make much sense. A process is getting a pid affected to it before starting to do anything on its own. The only issue that might affect that would be a process table full (30000 by default but can be increased to 999999 if I recall correctly).
# 5  
Old 04-23-2010
Why not add some logging
15 17 * * 1,2,3,4,5  /local/home/appworx/admin/ctl.shl 2&>1 > /local/home/appworx/admin/ctl.log

This is a sample crontab entry that logs the activity of /local/home/appworx/admin/ctl.shl
# 6  
Old 04-26-2010

I wasn't really in a position to add anymore logging as I am not the sys admin.

Thanks for all of your help.

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get all associated pids

im looking for a portable way to get the PID of the script that is running, and to get every other PIDs that are spawned from it. and by ever other PIDs, i presume, that would be "child processes". however, i want to shy away from using any command that is not available on every single unix... (1 Reply)
Discussion started by: SkySmart
1 Replies

2. Shell Programming and Scripting

Need help to kill pids

Hi there !!! I am writing a script to kill the pids on different linux boxes :cool: the output of my command gives the pids running on that box, but how can I kill all the pids without looping? :confused: Code: ssh $i ps -fu $USER | grep ManServer | grep -v grep | awk '{print $2}' | kill ... (4 Replies)
Discussion started by: prany_cool
4 Replies

3. Shell Programming and Scripting

differentiating PIDs under 200

Hey, So I'm new to shell scripting, and I'm trying to write one for my lab that will keep down the work load by deleting processes that are left over from previous sessions. Basically I want it to do three things. 1) Check the processes running 2) See if that person is logged on. 3) if... (2 Replies)
Discussion started by: prgoodwin
2 Replies

4. HP-UX

Conflict between df -k and du -sk...again

Hi, I know this has been discussed a number of time but i could not get the exact answer. So need help again. Issue: The two command for same file system shows different size. du -sk shows toatl size is 12780685 KB while df -k 45289229 used allocated Kb /oxt/mantran/bin $ du -sk... (8 Replies)
Discussion started by: malaya_17
8 Replies

5. Shell Programming and Scripting

Track and kill the PIDS

I have a script that conducts some SSH calls and I would like to capture the child info so that I can do a sleep and then a cleanup to make sure they do not stay out there as ghosts. I was told I could do something like this... #!/bin/sh for m = job1, job2, job3 x=1... (4 Replies)
Discussion started by: LRoberts
4 Replies

6. Shell Programming and Scripting

Comparing PIDs in a Shell...

Hi, There is a file having a list of running PIDs (pid_process) and another file having a list of registered PIDs (pid_regieter). I want to check if:- a) there is at least one running PID that does not correspond to a registered PID (listing the PID not registered in the file) ... (1 Reply)
Discussion started by: marconi
1 Replies

7. Shell Programming and Scripting

comparing PIDs in shell..

Hi, There is a file having a list of running PIDs and another file having a list of registered PIDs. How can we check if the number of running PIDs are less or more than the registered PIDs, comparing the total no. in each and also each value. Request you to pls give your inputs. Thanks a... (2 Replies)
Discussion started by: marconi
2 Replies

8. Shell Programming and Scripting

Shell Script for PIDs

I am trying to write a Shell script wherein the shell needs to read a list of PID in the File $stat/bin/Process and compare it to the PID of the processes running on a server. Also the script should return KO(not OK) with corresponding label :- a) When an environmental variable not... (2 Replies)
Discussion started by: marconi
2 Replies

9. UNIX for Dummies Questions & Answers

How to find the maximum # of PIDs

Is there a command in HP Unix which can be used inside a K shell to find out the maximum number of processes (PIDs) a pc can generate? Any help will be greatly appreciated. Steve (8 Replies)
Discussion started by: stevefox
8 Replies

10. HP-UX

PIDs of background process

How to track the pid of a background child process(shell script) from a parent script ? For example :- $ sleep 10000 & 4220 where 4220 is the pid of bg process sleep. Now my requirement is to keep the sleep statement in a shell script(test.ksh) and will be invoking it from... (3 Replies)
Discussion started by: ramkumar
3 Replies

Featured Tech Videos