|
|
Is there a better way ?
Well I believe you can eliminate the 'head -1' and save having to launch the 'head' command. I'm assuming the 'head -1' is simply there to pick off the first line if multiple Apps were found by 'grep'.
Is there a better way ?
...also it's always good practice to sanity check a value such as PID to see if it conforms. In this case the PID must be numeric. A /bin/sh function for doing this is as follows. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.29 seconds |
|