Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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.


Comment on Re: Urgent Help required with PERL CGI
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-09-17 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (100 votes), past polls