Killing a stalled FTP job

We’ve been having a scheduled FTP job hang up, and it’s holding up tons of other processes randomly over the last few weeks. Frustrated by how much work it sometimes takes to fix the errors it causes, I made a simple script change to start the job, wait 30 seconds (since it generally takes less than 15 seconds to complete), then kills it if it’s been hung up. It’ll then notify me that it had to be killed. Code follows.

start “ftpjob” ftp -s:ftpscript.txt
@timeout /t 30
REM taskkill /fi “WINDOWTITLE eq ftpjob*” /f
taskkill /fi “WINDOWTITLE eq ftpjob*” 2>NUL | findstr SUCCESS >NUL
set taskerror=%errorlevel%
if %taskerror% == 1 (
echo ftpjob FTP was not running
if %taskerror% == 0 (
echo Killed ftpjob FTP. Sending email …
mapisend -u “nope” -p “hahafunny” -r “nottelling” -s “ftpjob ftp killed”

GREAT weekend

I must say that this was just a great weekend. I don’t even have the words to describe it.

First, it was a super relaxing weekend with no kids. While I do love the kids, it’s nice when they’re away and you can just relax and not entertain anyone or have them wake you up early on your Saturday morning for something silly.

Slept in Saturday morning, then spent the rest of my morning just enjoying being married. We got stuff ready for the Affordable Christmas Market that our church and another church was sponsoring. Spent a couple hours just helping people and loving on them, which was just amazing.

Went home and spent a few more hours just loving life with my wife.

Then went out to Abbey Burger Bistro with some amazing men from my church. Spent a couple hours in the most random conversations about sports, comic books and movies, Android, and robotics. Had my very first kangaroo burger, and on a pretzel roll. Just a great time.

Instagram Photo

Got home and spent EVEN MORE time just talking with my wife. Bliss!

Sunday morning I got up to get ready for church. Saw deer in my neighborhood on my way to grab coffee.

Instagram Photo

Went to morning service at City Bible Church Baltimore with a GREAT sermon. My wife and I spent an awesome afternoon with some of the most amazing people we know enjoying lunch and laughs. And then headed to an evening at home with Ashlyne.

After a horribly long week at work, it was nice to cast off the stress of that drama and just enjoy life again. And I did.