Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
vrk adds sugar cookies to the platter on the sideboard.
shmem serves tea along with the cookies. (☕) x @CBMonks

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-04-24 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (439 votes). Check out past polls.