Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Modifying command line

by grinder (Bishop)
on May 11, 2008 at 21:53 UTC ( [id://685996]=note: print w/replies, xml ) Need Help??


in reply to Modifying command line

What platform are you on? FreeBSD will let you set the entire command line (although it will suffix it with (perl-5.8.8) or whatever).

Be that as it may, if you are sufficiently paranoid to want to do this, remember that there will always be a race condition between the moment the kernel launches your program and the point in time at which you'll be able to set $0 to something else. Someone may manage to obtain the information you so desperately want to hide.

Much better to adopt one of the approaches outlined by apl, and not have to worry about hiding it at all.

• another intruder with the mooring in the heart of the Perl

Replies are listed 'Best First'.
Re^2: Modifying command line
by horrendo (Sexton) on May 11, 2008 at 22:57 UTC
    Thanks all for the advice. I guess I'll stick with the config file approach.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-24 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found