Please, God let me finish this tonight

I really want to get this radio playlist finished tonight. I’m sick of fighting with it. I was thinking earlier that the best way to deal with the e-mail deletion option might just be to open up the mail again at the end of the program, cycle through all of the e-mails again, and delete them at that time. It’s not elegant but it will do… hopefully.

That didn’t work either. I could not figure out for the life of me what the problem was when it dawned on me. I had placed a print statement towards the end of the program that should always be called, but it wasn’t. That’s when I discovered where the problem was. The Perl script just halted at the exec command. It would run the shell command and then just freeze for some reason. I tried changing it to the system() function and it worked!. I got rid of all the extra stuff I just added and tested out the delete function. It works! Now that means all I should have to do is change the delay time back to 30 minutes and test this baby out.

I turned on the radio at 9:14 and the song Never There by Cake was playing. I love that band. I send a text message to my e-mail towards the beginning of the song. I checked my at jobs a few minutes later and lo and behold, a job was set for 30 minutes from now. So far, all is going well. I just need to check back in 30 minutes to see if the song shows up. If it does, I’ll consider this project finished until I find some problems that need to be fixed.

Thirty minutes pass, I check for the playlist file and it exists.  It’s the moment of truth.  Does it give me the Aritst Cake and the Song Never There?  Yes!  Finally I have this thing working.  I can start something new now.  I’m going to go update the project page right now.

Leave a Reply