scripting...
Jun. 26th, 2009 02:36 pmSo I spent a day and a half writing actually a .bat file that would check the servers to see if they a) do respond; b) send back some kind of information; c) for my specific kind of requests, the information sent back is meaningful and not empty (the bug was that a server from China was sending valid but empty data packages).
Yes, the script has been running for over a day now, checking it every five minutes; I'm planning to add sending emails to all the people responsible for the fucking wrong data regarding traffic conditions on hwy 237.
Yes, I did it using
So I have the following options for writing smarter scripts:
- cygwin+sh
- python
- scala
- The first one is a known solution, but I do not want to force people to install cygwin; it is not trivial for "windows people";
- the second one is a traditional solution for Google, as well as for many other companies North of hwy 237; my current attitude to Python is: 20th century technology (and since Guido said he does not understand category theory, I feel like it's kind of doomed);
- the third one is kind of funny since not so many people understand the fucking Scala, so... they don't know Python either, why bother.
Yes, the script has been running for over a day now, checking it every five minutes; I'm planning to add sending emails to all the people responsible for the fucking wrong data regarding traffic conditions on hwy 237.
Yes, I did it using
.bat
; now I was not able to parse and check data content using Microsoft's for /F
(did not work for me, I could not even retrieve file size).So I have the following options for writing smarter scripts:
- cygwin+sh
- python
- scala
- The first one is a known solution, but I do not want to force people to install cygwin; it is not trivial for "windows people";
- the second one is a traditional solution for Google, as well as for many other companies North of hwy 237; my current attitude to Python is: 20th century technology (and since Guido said he does not understand category theory, I feel like it's kind of doomed);
- the third one is kind of funny since not so many people understand the fucking Scala, so... they don't know Python either, why bother.