Skip to content

Instantly share code, notes, and snippets.

@corvax19
Created November 19, 2013 09:50
Show Gist options
  • Save corvax19/7542914 to your computer and use it in GitHub Desktop.
Save corvax19/7542914 to your computer and use it in GitHub Desktop.
Log Siebel web server's workers PIDs. server-status section to be enabled in httpd.conf.
((date; curl -s localhost:7777/server-status|grep '<tr><td>'|sed -r 's/.*<\/b><\/td><td>([0-9]{2,}).*/\1/g'|sort|uniq)|tr '\n' '|'; echo) >> /tmp/apache.pids
@corvax19
Copy link
Author

Outputs like this:
Tue Nov 19 10:49:01 CET 2013|2254|
Tue Nov 19 10:50:01 CET 2013|2252|2254|
Tue Nov 19 10:51:01 CET 2013|2252|2254| ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment