Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to get more information on CGIs I'm watching with Unix's "top" command

by Fletch (Bishop)
on Jul 26, 2007 at 20:28 UTC ( [id://628997]=note: print w/replies, xml ) Need Help??


in reply to How to get more information on CGIs I'm watching with Unix's "top" command

Presuming it's really CGI (not FastCGI) you should be able to use the ps command's e flag (again presuming the OS in question's ps supports BSD-y arguments) to dump the process' environment where you'd see things like path info and query strings and what not. You may also find several w's useful to dump more of the environment.

Alternately if the OS supports it and permissions allow it you may be able to extract information from the /proc filesystem (e.g. on Linux you could look in /proc/##/environ).

  • Comment on Re: How to get more information on CGIs I'm watching with Unix's "top" command

Replies are listed 'Best First'.
Re^2: How to get more information on CGIs I'm watching with Unix's "top" command
by AidanLee (Chaplain) on Jul 27, 2007 at 04:03 UTC
    Yes, Fedora Core's ps accepts BSD style arguments. ps e p PID worked like a charm. Thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-19 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found