Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: I need to export variable as another user

by Ratazong (Prior)
on Aug 06, 2012 at 12:19 UTC ( #985685=note: print w/ replies, xml ) Need Help??


in reply to I need to export variable as another user

Have a look at the first error-message:

Bareword found where operator expected at testscript.pl line 12, near +"print " PATH" (Might be a runaway multi-line "" string starting on line 7)
I suppose the following is line 7, as the closing " is missing:
my $bash_profile_run = system(". /home/mrdemo1/pig_profile_tmp);
HTH, Rata


Comment on Re: I need to export variable as another user
Select or Download Code
Re^2: I need to export variable as another user
by rahulruns (Sexton) on Aug 06, 2012 at 12:23 UTC

    Corrected the error but still not getting output

    output /home/mrdemo1/pig.jar excite.log.bz2 pig_1344241951706.log pig_1344244494512.log p +ig_1344245634547.log pig.jar script1-local-results.txt +tutorial.jar excite-small.log pig_1344243339709.log pig_1344245480551.log p +ig_1344246062938.log script1-hadoop.pig script2-hadoop.pig pig_1344241663743.log pig_1344243831809.log pig_1344245595053.log p +ig_1344246760544.log script1-local.pig script2-local.pig PATH IS and

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-18 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls