This is Hacker Public Radio episode 3,748 for Wednesday the 14th of December 2022. Today's show is entitled, The Squirrels Gift to HPR. It is hosted by Zenfloatored 2 and is about 9 minutes long. It carries an explicit flag. The summary is, the squirrels have modified bash potter to do something different. Hello boys and girls from Zenfloatored your favorite magical forest squirrel, former human being converted into squirrel by aliens in the 1960s and atheists with another podcast. This time I decided to give the audience of Hacker Public Radio a free gift for Christmas. The squirrels have all gotten together and decided that the humans need a free gift for Christmas. We've never done this before. So what I did was I had a couple together a podcast collecting bunch of software that I rescripted from bash potter, link festinants bash potter that has been reworked to run under the OpenBSD current shell. By the way, bash potter will work under the current shell or the bash shell, either one of them without any problem, so it wasn't too much work. And as you know, bash potter if you've ever used it, it collects your podcasts and stores them under directories, sub directories it makes that are labeled by the day it's run. So you'll have December 1st, December 2nd, December 3rd, December 4th and so on. Each day you run it it creates a new day and it downloads the podcasts from the list in the BP.configuration file as some of you may already know it gets the RSS feed information from that BP.configuration file and stores them daily, day by day by day. I wanted something some 14 years ago that would store podcasts by the originating author. And so I created a modified version of the bash potter that would store things in a sub directory that you would label out when you created the set the podcast up by the podcast name. For instance, I have an example here that I'm going to give you that you can download where I have an ARRRL directory for my Ham Radio podcast. I have Esther Fizz directory for Esther Fizz podcast. BSD now, free and beccripted, HPR, Linux Journal podcast, which is now become the reality 2.0 podcast. I just haven't renamed that. The Brothers West, the Lundick Show, which is no longer active, Brian Lundick isn't, or hasn't been making any podcasts off of that RSS feed quite some time. BSD talk, which is also in active at the moment, maybe defunct two nodes. It's been quite a while. And then finally, a new world order. And you'll see, when you download this file, it's called, and let me just go back to that directory. The file I made is called pod thing. And you untar it with the command tar-zxvf, or space, excuse me, pod thing. And it will untar into the directory you want to run it in. And you just switch down into the storage directory and then the media gift directory. And frankly, you can move the media gift directory and rename it to whatever you want, media, or Fred, or John, or whatever name you want that directory to be. And move it to where the machine you'd like to run it. Currently, as I say, it's written to work with the OpenBSD cornshell. If you happen to be a slacker user, I believe, let me just take a look at slack builds here and do a search and openBSD. I was thinking, yeah, there it is, KSH-OpenBSD. They happen to have one ready for slacker 15. You could possibly just install that and do a little tweaking and set it up to run so that it is the KSH that we're looking for. Or, if you're on, if you want to run just the bash shell, then you can go down into each one of the directories for the programs. And you'll see a bash potter directory down beneath where the bash potter code is located that I modified. And just change the header on the bash potter scripts to what you want, which would be more or bash shell. You'd want to change that to pound exclamation slash bin slash bash on the top of each one of those bash potter shells again. Change it back to that. Right now reads pound sign exclamation slash bin slash KSH, which will activate the BSDKSH shell. And I don't remember, but I think if you're a slacker in you, you install from slack builds, the KSH-OpenBSD, it will just show up as KSH, if it doesn't, you can make a link to KSH once you get it installed from whatever it called it. And that should work just fine. The corn shells a little more secure for running stuff like that from a cron tab and a server. If you're running net BSD, of course, they have a corn shell. So you shouldn't have any problem with that. And you can start collecting your podcasts by, in in directories, by who they originated from, rather than the way bash potter does it, which is day by day. Anyway, have a look at the script, how you engage it, what you set it up. And you shouldn't have to set this one up. You could just run it right off the, the bat using the, the corn shell command that I created called get all podcasts. Just do a dot slash get all podcasts, get underscore all, underscore podcasts. You'll see it there at the top level of this media guest directory that you'll probably rename and move to somewhere else in your hard drive once you get it exploded and then you can play with it. And I'm sure that some efficiencies could be done in the script, for instance, you could perhaps copy the bash potter shell to another directory and create sim links into all these other directories to save a little disk space, maybe. But I didn't bother to I just copy the whole thing to a new directory. It's time I had a podcast I created directory for it. Then I just copy the bash potter shell from one of the previous podcasts. I have been downloading into the new one. And then, of course, I get into the get all podcast script and modify it with the appropriate echo commands and stuff to to make it execute that script to get the podcast. And this can all be run from a cron shell so you could have it go grab your podcast once a week if you wanted to. I'm sure there's probably a lot of other people that have written something similar or maybe even better in the way of text podcast gathering scripts. And I'd be interested in seeing them make a show on theirs, their homemade devices, or even criticisms or comments about this script that I made some 14 years ago. I haven't really modified it as you can tell because some of the podcasts have long since been dead. You know, when I made this BSD talk was still an active podcast so that was quite some time ago. But at any rate, it gives you an alternative way of collecting podcasts if you're into such things. If not, oh well, best late plans of squirrel and men. Thank you for listening and Merry Christmas to everyone. We'll try to make another podcast here soon since we're short of podcasts, boys and girls. Thanks for listening. Bye from squirrelland. You have been listening to Hacker Public Radio at Hacker Public Radio.org. Today's show was contributed by a HBR this night like yourself. If you ever thought of recording podcasts, you click on our contribute link to find out how easy it means. Hosting for HBR has been kindly provided by an onsthost.com, Internet Archive and our Sync.net. On this advice stages, today's show is released on our Creative Commons. Attribution for going to International License.