Sponsored Content
Full Discussion: Get pid
Top Forums UNIX for Dummies Questions & Answers Get pid Post 302227019 by ynilesh on Wednesday 20th of August 2008 11:35:38 AM
Old 08-20-2008
AFAIK it should show process details if process is running. It might have been complete or killed and then you checked ps. (Just a doubt)

When you fire "bg" command does it show that your script is running in background ?

- nilesh
 

10 More Discussions You Might Find Interesting

1. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

2. UNIX for Advanced & Expert Users

Pid=0

What OS does not use PID=0? is it FreeBSD? (0 Replies)
Discussion started by: nmajin
0 Replies

3. Shell Programming and Scripting

how to get PID only

The below command returns full line.How can i get only PID from this line ie 15794 from the below example (FI NY) nbswpsa52.ny.ficc.gs.com~ ->ps -ef | grep keepalive | grep -v keepaliveStub | grep -v swapback | grep -v grep ficctprd 15794 1 0 13:12:58 ? 0:01 keepalive (3 Replies)
Discussion started by: kotasateesh
3 Replies

4. UNIX for Dummies Questions & Answers

getting PID

Hi , I am trying to get the PID using the following command: $ /usr/ucb/ps -auwwwwx | grep java | grep Proceess | ptree PID or $ /usr/ucb/ps -auwwwwx | grep java | grep Proceess;ptree PID it is possible to get PID, such that I check whether any orphan process is running. solution... (0 Replies)
Discussion started by: Rakesh Bhat
0 Replies

5. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

6. Shell Programming and Scripting

KILL PID, intern should kill another PID.

Hi All, In my project i have two process runs in the back end. Once i start my project, and execute the command ps, i get below output: PID TTY TIME CMD 9086 pts/1 0:00 ksh 9241 pts/1 0:02 java 9240 pts/1 0:00 shell_script_bg java with 9241 PID is the main... (4 Replies)
Discussion started by: rkrgarlapati
4 Replies

7. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

8. UNIX for Dummies Questions & Answers

Another PID ?

I have searched to find an anwer to no avail, I hope you can help me. I have a.ksh that many people call and a.ksh calls b.ksh b.ksh is also invoked stand-alone by many people as well In b.ksh I want to do something different if it was not involked by a.ksh. How can I do this? (7 Replies)
Discussion started by: CAGIRL
7 Replies

9. UNIX for Dummies Questions & Answers

PID value

name the process wit PID value 0? swapper or scheduler or both.... (3 Replies)
Discussion started by: karthi_g
3 Replies

10. Shell Programming and Scripting

Pid=$!

Hello, I would like to know what this command means? PID=$! what does "!" stand for? (5 Replies)
Discussion started by: googlietdr
5 Replies
show(1mh)																 show(1mh)

Name
       show - show (list) messages

Syntax
       show [ +folder ] [ msgs ] [ -draft ] [ -[no]header ] [ -help ] [ -showproc program ] [ -noshowproc ] [ options to ]

Description
       Use  to	display  the  contents of the current message.	You can specify alternative messages or folders by using the +folder or msgs argu-
       ments.

       If a folder is given, it becomes the current folder.  The last message shown becomes the current message.

       You can specify a number of messages or a range of messages using the msgs argument.  If you specify more than one message, prompts  for  a
       <RETURN> prior to listing each message.

       Typically,  the	messages  are  listed exactly as they are, with no reformatting.  A program named by the showproc component in the file is
       invoked to do the listing, and any options not recognized by are passed along to that program.  The default program is

       By default, the command use the program to list each message, a page at a time.	When the end of the  page  is  reached,  it  waits  for  a
       <RETURN>  or a space.  If you press <RETURN>, prints the next line.  If you press the space bar, it prints the next screen of data.  At the
       end of the message, automatically returns you to the system prompt.  Press q to quit before the end of the message.

       If the profile entry Unseen-Sequence: is present and non-empty, then will remove each of the messages shown from the sequences named by the
       profile entry.

Options
       -draft	 Displays  the draft message, or the current message in your folder, if you have one set up.  You cannot give a msgs argument when
		 you use this option.

       -header
       -noheader Displays a one-line header before the message.  The header consists of the name of the folder and the message	number.   This	is
		 the default behavior.	It can be suppressed with the -noheader option.

       -help	 Prints a list of the valid options to this command.

       -showproc program [ options ]
       -noshowproc
		 Specifies an alternative program to list messages.  The default is to use the program defined by the showproc: entry in the file.
		 You can give options to the program at the command line.  These are passed directly to by

		 If the -noshowproc option is specified, is used instead of

		 The MH command can be used as a to show messages in a more uniform format.  See for more details.

		 If you are going to use the same all the time, it is advisable to specify it in your file.  See for more details.

       The defaults for this command are as follows:

	      +folder defaults to the current folder
	      msgs defaults to the current message
	      -header

Restrictions
       The -header option does not work when expands to more than one message.	If the is then this problem can be circumvented by referencing the
       messagename field in the format file.

       The  command updates your mail environment before showing the message.  Hence may mark messages as seen before you actually see them.  How-
       ever, this is generally not a problem, unless you are using the unseen messages mechanism, and you interrupt while  it  is  showing  unseen
       messages.

       If your is then uses a built-in it does not actually run the program.  Hence, if you define your own do not call it since will not run it.

       If is your (which is the default), then avoid running in the background with only its standard output piped to another process.	You should
       re-direct the diagnostic output of as well.

       For example, in the following incorrect example, will go into a input state:
       % show | print &
       For users of the correct command is:
       % show |& print &
       For users of the correct command is:
       % show 2>&1 | print &

Examples
       In the first example, displays the contents of message 36 in the current folder:
       % show 36

       In the next example, the program is used to list the current message:
       % show -showproc pr

Profile Components
       Path:		  To determine the user's Mail directory
       Unseen-Sequence:   To name sequences denoting unseen messages
       showproc:	  Program to show messages

Files
       The user profile.

See Also
       more(1), mhl(1mh), next(1mh), pick(1mh), prev(1mh), scan(1mh)

																	 show(1mh)
All times are GMT -4. The time now is 11:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy