VB Script


sorabji.com: I need advice: VB Script
By
spunky on Tuesday, March 9, 2004 - 10:28 pm:

    PLEASE

    I am BEGGING for help here.


    I need to write a VP script that will monitor a log file, and if the log is not written to in a 5 minute period, it will send an email alert.


    I TOLD THEM I WAS A NETWORK ADMIN, NOT A PROGRAMMER!!!!


By spunky on Tuesday, March 9, 2004 - 10:29 pm:

    VB

    or

    CGI

    or

    PERL

    or

    JAVA

    I dont care which...


By Nate on Wednesday, March 10, 2004 - 09:02 am:

    hire a temp.

    to sit and watch the file.


By TBone on Wednesday, March 10, 2004 - 10:13 am:

    I'll help. Toss up an email.


By agatha on Wednesday, March 10, 2004 - 11:57 pm:

    tbone's the bomb what with the helping and shit.


By spunky on Thursday, March 11, 2004 - 09:32 am:

    thanks TBone

    I found a way to monitor the file and send smtp mail via command line batch.

    Of course, now that I have figured it out, they will be back for more.


By TBone on Thursday, March 11, 2004 - 11:13 am:

    Time to learn some perl.


By Antigone on Thursday, March 11, 2004 - 12:58 pm:

    Yeah, man. Can't be no system admin without knowin' the perl.


By sarah on Thursday, March 11, 2004 - 04:55 pm:


    well, the point is, many folks who should understand don't understand the difference between a programmer and sys admin or a computer technician, etc. plenty of people think if you can do anything with computers, you can do everything with computers.

    but the thing is, everybody's wingin' it, all the time.



By semillama on Thursday, March 11, 2004 - 04:58 pm:

    that sounds just like contract archaeology.


By spunky on Thursday, March 11, 2004 - 09:17 pm:

    probably. Personally, I think it is just a way to keep payrolls lighter.

    We have a person in house who said "I can do that script in two hours, I'll help, but I am not doing it for you". Um, he is a programmer.
    I am a network admin. who SHOULD be doing it?
    Our department head's favorite term is "well, aren't you a team player?"


By TBone on Friday, March 12, 2004 - 11:31 am:

    Before Windows became so ubiquitous, it was hardly uncommon for a network admin to throw together a utility here and there. Learning how to do a little scripting will make your job easier.
    .
    "I'll help, but I am not doing it for you" is the best way to deal with most interdepartmental requests like these. It sometimes takes more time, but it cuts down on future requests.
    .
    But that team player crap is crap. Teams work best when people perform the tasks they're best at. Managers often seem to think that a team works best if everyone simultaniously tries to do everything. Or maybe just do what they're told.


By Antigone on Friday, March 12, 2004 - 12:03 pm:

    Two hours? To do a script to check if a log file has been touched in the last five minutes?

    Um...you need new programmers, d00d.


By Nate on Friday, March 12, 2004 - 09:21 pm:

    heh. i don't know vbscript, i went to msdn and looked at the reference and figured out half of it in five minutes.

    unfortunately i had to go to work and only had time to make a jackass comment.


By spunky on Friday, March 12, 2004 - 10:57 pm:

    its easy to do a time check, but how this script needed to ignore the time and check size, then send out emails via smtp.

    I ended up using Logmon for the monitor and Blat for the smtp portion.


By The Watcher on Thursday, March 18, 2004 - 02:02 pm:

    God, I am a dinosaur. It's all greek to me.

    I think I'll stick to COBOL.


By The Watcher on Thursday, March 18, 2004 - 02:14 pm:


By Dr Pepper on Monday, April 1, 2013 - 02:25 am:

    I know this posting is 9 years old; however, I am doing alright with ruby and perl, but as for python, I can't get this to work.