cat /proc/<pid>/environ
If you want to have pid(s) of a given running executable you can, among a number of other possibilities, use pidof
:
AlberT$ pidof sshd
30690 6512
EDIT:
I totally quote Dennis Williamson and Teddy comments to achieve a more readable output.
My solution is the following:
tr '\0' '\n' < /proc/<pid>/environ
You can define a custom log format in squid.conf with the logformat
directive. This can then be used in the access_log
directive:
logformat nourl %tl %6tr %>a %Ss/%03>Hs %<st %[un %Sh/%<a %mt
access_log daemon:/usr/local/squid/var/logs/access.log nourl
will output a log file similar to the squid default, with time in local time and HTTP method and URL removed.
Best Answer
Something like
could help you with the last part (
tail
-ing the log). Found it on a Squid mailing list.