Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: I need to export variable as another user

by Ratazong (Monsignor)
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

Replies are listed 'Best First'.
Re^2: I need to export variable as another user
by rahulruns (Beadle) 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?
[stonecolddevin]: erix what is this wizardy? there's no sound for me :-(
[stevieb]: he comes and goes every few years.
[erix]: stonecolddevin: oh? Don't know, it works for me
[Sinistral]: stonecolddevin / stevieb - would 'he' in this context (looked at last 50 lines and didn't see discussion) be a certain solar timepiece user?
[stonecolddevin]: Sinistral yes indeed
[Discipulus]: he does not learn, nor teach, nor learn
[planetscape]: hello all
[stonecolddevin]: o/ planetscape
[Sinistral]: I think that just the sight of his username now causes a downvote storm. I agree, and the gratuitous use of formatting does make reading hard. I've given him +1 on things where there seemed to be actual good advice, but I think the big
[Sinistral]: nail in coffin was the rant against a Schwarzian Transform

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2017-06-22 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (529 votes). Check out past polls.