• 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: How to hide command line passed to my own tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to hide command line passed to my own tool


  • Subject: Re: How to hide command line passed to my own tool
  • From: email@hidden (Peter Seebach)
  • Date: Wed, 29 Sep 2004 13:39:55 -0500

In message <email@hidden>, Martin Bestma
nn writes:
>I'm writing a command line tool. When I call this tool from my app I
>like to hide those parameters so that ps or other tools like this can
>not see them.
>I tried the following code

>for (int i=1; i<argc; i++) {
>		char *arg = argv[i];
>		while(*arg)
>			*arg++ = "#";
>	}

>Set my my argument to something unreadable but this doesn't help. I
>still see the parameters when I do a ps.

>Is there any way to do this on darwin?

Hmm!  Interesting.  The canonical Berkeley answer is setproctitle(3), but
that seems to be missing.

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

This email sent to email@hidden

References: 
 >How to hide command line passed to my own tool (From: Martin Bestmann <email@hidden>)

  • Prev by Date: How to hide command line passed to my own tool
  • Next by Date: Re: How to hide command line passed to my own tool
  • Previous by thread: How to hide command line passed to my own tool
  • Next by thread: Re: How to hide command line passed to my own tool
  • Index(es):
    • Date
    • Thread