Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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

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 meditating upon the Monastery: (10)
As of 2016-07-01 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (411 votes). Check out past polls.