![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print Full record and substring in that record | ukatru | UNIX for Advanced & Expert Users | 1 | 09-19-2008 07:32 PM |
| how to read record by record from a file in unix | raoscb | UNIX for Dummies Questions & Answers | 1 | 05-16-2008 07:30 AM |
| Launching Several Shells.... | marconi | Shell Programming and Scripting | 1 | 03-05-2008 07:24 PM |
| splitting a record and adding a record to a file | rsolap | Shell Programming and Scripting | 1 | 08-13-2007 02:58 PM |
| Launching a new bash shell | gsd | Shell Programming and Scripting | 3 | 07-20-2006 05:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Record PID when launching
I would like to record the PID of a process when i lauch it from my script
something like: #/bin/bash $abc_pid = /apps/abc/abc.bin -port6700 I know I can run the ps command and grep for abc.bin. The idea is that becase the process runs on several ports and the argument list of .bin is quite large, it would be easier if I could capture the PID at run time. I've tried $abc_pid = $! but this does not work. Also, I've read that sometimes that can give a forked PID instead of the parent. Thanks, |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|