Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 all is calm...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-06-26 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (577 votes). Check out past polls.