Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-02-25 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (365 votes). Check out past polls.