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

Re: I need to export variable as another user

by pvaldes (Chaplain)
on Aug 07, 2012 at 15:53 UTC ( #986022=note: print w/ replies, xml ) Need Help??


in reply to I need to export variable as another user

my $pig_file = system("ls /home/mrdemo1/pig.jar"); my $bash_profile_run = system(". /home/mrdemo1/pig_profile_tmp);

nonsense, use something like this instead:

my $pig_file = '/home/mrdemo1/pig.jar'; # etc...

see also opendir, File::basename and readdir


Comment on Re: I need to export variable as another user
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-10-23 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls