Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Perl/UNIX .profile problem

by mce (Curate)
on Nov 18, 2004 at 12:29 UTC ( #408750=note: print w/ replies, xml ) Need Help??


in reply to Perl/UNIX .profile problem

If you really want to obfu it:

$file = "/home/user/.profile"; grep(do{chop;s/(.*)=(.*)/$ENV{$1}=$2/e;},`. $file; env`);
But I am sure that there are better solutions.
Yours,

---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium


Comment on Re: Perl/UNIX .profile problem
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-12-28 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls