Re: How to hide command line passed to my own tool
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