New Blogging Script

It’s only 15 lines of POSIX sh script

05/19/2022

I haven’t pushed the updated script to the git page yet, but I’ve fully automated my blog posting now. All I have to do is run blogpost in my terminal and it does pretty much everything for me. It puts all of the contents of this page by reading a couple of variables (if you want to see what it does, look at the source of this page and the script). It’s very simple, and it has pretty much three features:

  1. Create HTML of actual post

  2. Update blog index

  3. Append relevant info to RSS feed

It’s quite simple really. It’s very quick and requires very little maintenance. All I have to do is SSH into my server, enter the blog directory, run the command, and type out a blog post. Too simple!

You can find the script here.