Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How do I prevent the command/parameters in a system call from displaying in ps

by comatose (Monk)
on May 25, 2000 at 21:53 UTC ( [id://14833]=note: print w/replies, xml ) Need Help??


in reply to How do I prevent the command/parameters in a system call from displaying in ps

No matter what, the command you are trying to run is going to show up in the process list. ps parses the /proc information and formats it nicely and will show everything running no matter what you might do in perl (assuming you don't use hacked versions of ps and top).

The only way to keep command arguments from showing is to use open() and pipe your arguments to it through STDIN. There might be some potential for obfuscation, but that's about it.

  • Comment on Re: How do I prevent the command/parameters in a system call from displaying in ps

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://14833]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found