Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
PackageMaker PreFlight question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jobyabraham1983" data-source="post: 909596" data-attributes="member: 121798"><p>Hi hello,</p><p></p><p>I am not sure but i think <span style="color: Red">`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $1}'</span> won't return process id it will return user name so can you just try with <span style="color: Lime">pid=`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $2}`</span> instead of your particular command</p><p></p><p>Thanks you</p></blockquote><p></p>
[QUOTE="jobyabraham1983, post: 909596, member: 121798"] Hi hello, I am not sure but i think [COLOR="Red"]`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $1}'[/COLOR] won't return process id it will return user name so can you just try with [COLOR="Lime"]pid=`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $2}`[/COLOR] instead of your particular command Thanks you [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
PackageMaker PreFlight question
Top