Monthly Archives: March 2008

How to get the directory location of a shell script

dirname=`dirname $0`

Tagged | Leave a comment

How to Fork in Perl

Kick off multiple processes simultaneously in Perl. my $num = 10; my @children; for (my $i = 0; $i < $num; $i++) { my $pid = fork(); if ($pid) { # parent push @children, $pid; } elsif ($pid == 0) … Continue reading

Tagged | Leave a comment

Adding WordPress Categories programmatically using Perl/LWP

Comment out one line in this file: wp-admin/admin-ajax.php (around line 586) case ‘add-cat’ : // From Manage->Categories #check_ajax_referer( ‘add-category’ ); Now you can submit categories using Perl/LWP!

Posted in Wordpress | Tagged , , | Leave a comment

How to show and empty the Postfix queue

To show the Postfix queue: postqueue -p To empty the queue: postsuper -d ALL

Tagged , | 5 Comments