Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 cooling their heels in the Monastery: (6)
As of 2014-07-12 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls