BOGGLED!! User information incorrect when viewing "ps" Process Status


 
Thread Tools Search this Thread
Operating Systems HP-UX BOGGLED!! User information incorrect when viewing "ps" Process Status
# 1  
Old 09-05-2011
BOGGLED!! User information incorrect when viewing "ps" Process Status

Hello Anyone:

I have run into an issue that I have never seen or heard of.

Recently on a specific server I have encountered a random issue that I've not been able to repliate on demand... When I view the processes status of a certain process, the information returned to the screen has a descrepancy. What even puzzles me more is the PID associated with the rouge process with the invalid user name " 1 ", it has NO PPID. Please find my example provided below....

Code:
MyID @ Hostname > ps -ef | grep <process_name>
user 2623 2622 0 Aug 22 ? 0:04 <process_name>
MyID 12435 25205 0 17:27:13 pts/1 0:00 grep <process_name> 
user 2622 2618 0 Aug 22 ? 0:01 <process_name>
script 1 0 Aug 22 ? 0:01 <process_name>
MyID @ Hostname > which script
/opt/program/bin/script
 
MyID @ Hostname > uname -a
HP-UX Hostname B.11.23 U 9000/800 2776482277 unlimited-user license

Can anyone please help me in explaining this?

Thank you in advance,
Daniel

Last edited by pludi; 09-06-2011 at 06:05 AM.. Reason: Typo.
# 2  
Old 09-06-2011
I wonder if its not the display that has some corruption which could explain why you cant replicate on demand...
For this IMHO:
Code:
script 1 0 Aug 22 ? 0:01 <process_name>

is non sense since ps displays the uid in first position, so it looks more like over printing on the last line sort of stuff...
It does happen sometimes when some fancy program changes stty values... then when you get the prompt back you finish with an upset standard output - usually you notice nothing till you need vi, then when your trying to modify something important it seem vi gone bezeurk!
Have you tried "stty sane" or the resize command? (In case you were in xterm and changed its size and something did not follow...)
# 3  
Old 09-06-2011
Q:
What is this script in /opt/ for script is a true unix command (/usr/bin/script) look at the man page....
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

What is the significance of sh -s in ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh?

Please can you help me understand the significance of providing arguments under sh -s in > ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Discussion started by: Sree10
4 Replies

4. Shell Programming and Scripting

Checking running process status using "grep" on multiple servers in load sharing system.

Suppose i have 3 different servers say x,y and z. Im running some process say ABC and 40 instances for the same is being created. In load sharing suppose on server x, 20 instances are running server y, 10 instances are running server z, 10 instances are running. While checking the... (1 Reply)
Discussion started by: ankitknit
1 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Red Hat

"service" , "process" and " daemon" ?

Friends , Anybody plz tell me what is the basic difference between "service" , "process" and " daemon" ? Waiting for kind reply .. .. (1 Reply)
Discussion started by: shipon_97
1 Replies

7. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

8. Shell Programming and Scripting

communicating wth another user aside from "wall" and "write"

Hi, Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user but i dont want other remotely-logged-on users to receive the message (on the pseudo-terminals). I... (6 Replies)
Discussion started by: Deanne
6 Replies
Login or Register to Ask a Question