Can a batch job truly have a PID of 1?


 
Thread Tools Search this Thread
Operating Systems Solaris Can a batch job truly have a PID of 1?
# 1  
Old 11-10-2010
Can a batch job truly have a PID of 1?

Is it possible for a process id of 1. Is there anything special about 1 or 8 ?
Harleyrci
# 2  
Old 11-10-2010
"1" can't be a process id outside the one used by init (on the global zone with Solaris 10+).
# 3  
Old 11-10-2010
Hi Jill,
So what am I looking at when I issue a ps -ef and I see process id 1 on a job thats executing a java program. Is there any issues with jobs that have a pid of 8?

/usr/jdk/instances/jdk1.6.0/jre/bin/sparcv9/java -server -Xmx512m -Xms512m -XX

Thanks

---------- Post updated at 04:58 PM ---------- Previous update was at 04:53 PM ----------

SunOS cbu001 5.10 Generic_142900-15 sun4u sparc SUNW,SPARC-Enterprise
Harleyrci
# 4  
Old 11-10-2010
Quote:
Originally Posted by Harleyrci
Hi Jill
Jill ?
Quote:
So what am I looking at when I issue a ps -ef and I see process id 1 on a job thats executing a java program.
Perhaps are you looking at the wrong column ...
# 5  
Old 11-10-2010
Hi Jill,
On another topic. I have a batch job that seems to hang. What tool or built in utility can I use to see if a batch job is making progress?

Thanks
Harleyrci
# 6  
Old 11-11-2010
Quote:
Originally Posted by Harleyrci
Hi Jill,
Why are you insisting calling me Jill ?
So were you looking at the wrong column or what ?
Quote:
On another topic.
Then please open a new thread as this is unrelated.
# 7  
Old 11-11-2010
You are probably looking at the parent PID.
When you look at the results of a ps -ef the first column is the PID, which is the parent ID, the next column is the PPID the is the child ID.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Reverse prior batch job (without simply rewriting the script)

So, let's say I have a usual batch rename file like this: and I'd like to have a secon bat file, that can /reverse" the first. BUT, I don't want to simply "rewrite" it like move hello 254352426 but rather, have the new script take the source and destination and reverse it somehow... (6 Replies)
Discussion started by: pasc
6 Replies

2. Windows & DOS: Issues & Discussions

To run job in parallel in batch

Hi, I am using a batch file to run 2 or more shutdown batch for each of my server like below: Shutdown_serverA.bat Shutdown_serverB.bat ... Is there anyway i can do this in parallel instead of serially:confused: ServerA & ServerB shutdown at the same time in one click (batch). (4 Replies)
Discussion started by: beginningDBA
4 Replies

3. UNIX for Dummies Questions & Answers

How to create a batch job ?

Hi In unix how to create a batch job and Is there any command to close file in unix. Please help me I am new to unix world (6 Replies)
Discussion started by: vinay.h4
6 Replies

4. Solaris

Which job has PID 0 ?

Hi everyone. I want to know which job has PID 0 ? If I do 'ps -all' cmd why dont I see in terminal. Thanks in advance . (6 Replies)
Discussion started by: adc22
6 Replies

5. AIX

Script to start a remote batch job on another server

Hi , I am trying to execute one script residing on server B from server A and in automated way but with a trigger. My main quetion are 1) How I will login to the remote server automatically with user name and password. ( rsh or any other way ?) 2) Once logged in I need to execute... (2 Replies)
Discussion started by: agent47
2 Replies

6. Shell Programming and Scripting

A Batch job to delete files from various directories

Hi, I have a shell script to find files older than 'X' days ($2) in directory path ($1) and delete them. Like this: my_file_remover.sh /usr/home/c 90 Now, I need to modify this script and add it in CRON, so that it checks other directories also. Like: my_file_remover.sh /usr/home/c... (3 Replies)
Discussion started by: guruparan18
3 Replies

7. UNIX for Dummies Questions & Answers

Regarding interactive ID of batch job

Hi all, We are running a batch job using Unix script. This batch job is running daily to get data from a Mainframe database and to load our tables. We are using an interactive ID for the batch job. If we removed that interactive ID, the batch job fails. What's my question is.. Is the... (1 Reply)
Discussion started by: pradeep.edara
1 Replies

8. Shell Programming and Scripting

read input file for batch job

hi all, I am a newbie in unix shell script. May I know how to write a bacth job to read a list of files afrom the inout file and do the chmod ? Thanks. i.e. inside input.txt ==== a.txt b.txt c.txt and I want to write a batch job to read the input .txt and do the chmod 755 for all 3... (14 Replies)
Discussion started by: kinmak
14 Replies

9. Windows & DOS: Issues & Discussions

windows scripting for a batch job

I have been doing unix scripting for quite awhile and there seems to be a wealth of information on it. Now I am working on migrating an intel based application to a new server. I need to modify some existing scripts, but am having trouble finding information on windows scripting, a forum similar... (2 Replies)
Discussion started by: MizzGail
2 Replies
Login or Register to Ask a Question