Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Script running online?

by sutch (Curate)
on Mar 26, 2001 at 20:32 UTC ( #67226=note: print w/replies, xml ) Need Help??


in reply to Script running online?

PotPieMan's solution is close to what I came up with. I tried:

print getpwuid($<);
Run from the command line it printed:

sutch

which is my username. Run within a CGI script it printed:

apache

which is the user that HTTPD runs under on my machine.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2017-03-24 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (297 votes). Check out past polls.