script

Keep that command running - keeprunning

I wanted to keep some programs running, which is to say restart them if they crashed, but I also wanted them to be able to exit normally. The platform is Linux, the problem is compiz, the solution is a very small shell script. Surely the internets will let me know if there is something grossly wrong with it. This script is not meant for long-running daemons, there are plenty of tools for that already.

lspci for linux as a shell script

I needed a quick version of lspci for looking at some linux systems without pciutils, so I threw this one together in a couple of minutes.

It's very simple, it doesn't tell you what the devices are, but it does tell you what kind of devices they are and what their PCI ID is. Then you can go look that up online to figure out what they are. It wouldn't be a horrible stretch to add support for the pci.ids file, but it wasn't necessary for my purposes.

A Simple perl-based cron.php Fetcher for Drupal

I originally posted this on drupal.org here but I wrote it, so here it is.

I just ran into a fun problem: I installed a VMware LAMP appliance and it turns out it doesn't have lynx, links, curl, or wget. What to do? Luckily, it has perl. The following perl script grabs cron.php from localhost and prints the job's status to STDOUT.

Subscribe to RSS - script