• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is this program open?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this program open?


  • Subject: Re: Is this program open?
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 13 Apr 2006 20:21:05 +0200

John,

On 13.4.2006, at 20:07, John Stiles wrote:

I stared at the output of "ps -axo command" for a minute but it seemed a little inconsistent

That's what Finlay warned about. The output is perfectly consistent in that it gives you the exact path the command has been launched with (*). If it has been launched with an absolute one, you get it. If it was not, you get none.


Just try e.g.

ps -auxww | fgrep fgrep
ps -auxww | /usr/bin/fgrep fgrep
cd /usr ; ps -auxww | ./bin/fgrep fgrep

(*) I believe in principle the path *can* be messed up with after the process has been launched, but that would be extremely rare case.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Is this program open? (From: John Stiles <email@hidden>)
 >Re: Is this program open? (From: "Tom Harrington" <email@hidden>)
 >Re: Is this program open? (From: John Stiles <email@hidden>)
 >Re: Is this program open? (From: "Finlay Dobbie" <email@hidden>)
 >Re: Is this program open? (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Is this program open?
  • Next by Date: Re: Is this program open?
  • Previous by thread: Re: Is this program open?
  • Next by thread: Re: Is this program open?
  • Index(es):
    • Date
    • Thread