Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Urgent Help required with PERL CGI

by Corion (Pope)
on Dec 24, 2012 at 13:27 UTC ( #1010188=note: print w/replies, xml ) Need Help??

in reply to Urgent Help required with PERL CGI

Your web server is running your CGI script as a different user than "your user", and/or it does not set up your login environment.

Also see Get default login environment and the discussion that follows it.

Replies are listed 'Best First'.
Re^2: Urgent Help required with PERL CGI
by Anonymous Monk on Dec 24, 2012 at 13:34 UTC
    Can you elaborate more.. On luking the discussion u suggested ,n running first script there, got my boot_server as dd851c2n10.. Please elaborate more n provide me the solution. Very tired of trying all possible things

      You don't tell us what things you tried and how they failed for you. Also, you don't tell us what relevance boot_server has.

      Maybe you want to read the whole referenced thread to learn how to import values from a shell script into your Perl script? As an alternative, you can make your webserver launch a shell script which sets up your environment and then executes your Perl CGI script.

        print Dumper(\%ENV); is printing all my local variables. if i have local variable $SPSERVER.. can u tell me how to use it with %ENV , so that properly value of my variable $SPSERVER is displayed..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010188]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2018-06-19 14:45 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.