Toggen Blog

Tech tips

Articles

Latest

Access

Blog History

mod_security2 sigh

Good Concept Just be prepared for head scratching I had a post with this as the URL /it-tips/getting-screenshots-working-the-way-i-like-in-lxde couldn't access with mod_security running. The reason it didn't like the word "like" in the Permalink tag. So I've changed...

pidof

This will seem really simple to those that know about these things, but hey I'm easily amused. Here is a snippet from an /etc/init.d script HTTPD=/httpd/bin/httpd PIDFILE=/httpd/logs/httpd.pid if pidof $HTTPD | tr ' ' '\n' | grep -w $(cat $PIDFILE); then return 0 fi...