![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get and process mysql result set in shell script | ashok1979 | Shell Programming and Scripting | 4 | 08-03-2009 09:28 AM |
| Shell script to display top 5 process (per cpu consumption) | mr_awd | Shell Programming and Scripting | 2 | 05-26-2009 10:23 AM |
| Shell Script to end process help | NoobieBoobie | UNIX for Dummies Questions & Answers | 6 | 04-06-2009 04:11 AM |
| How can i know file using another process on lunix shell script? | Tlg13team | Shell Programming and Scripting | 1 | 04-02-2007 03:33 AM |
| Shell Script Dependencies other process | pankajkrmishra | Shell Programming and Scripting | 4 | 07-25-2006 06:20 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Getting process ID in a shell script.
Hi all,
In my script i need to store the process ID of my app server in a variable. I know how to verify whether a process is running, by following: Code:
ps -ef|grep 'jboss' status=$? if [ "$status" = 0] ; then # process is running else # process is nor running fi Can someone please advise, how can I get the process ID? Thanks in advance. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|