VB Script


sorabji.com: I need advice: VB Script
THIS IS A READ-ONLY ARCHIVE FROM THE SORABJI.COM MESSAGE BOARDS (1995-2016).

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.


bbs.sorabji.com
 

The Stalking Post: General goddam chit-chat Every 3 seconds: Sex . Can men and women just be friends? . Dreamland . Insomnia . Are you stoned? . What are you eating? I need advice: Can you help? . Reasons to be cheerful . Days and nights . Words . Are there any news? Wishful thinking: Have you ever... . I wish you were... . Why I oughta... Is it art?: This question seems to come up quite often around here. Weeds: Things that, if erased from our cultural memory forever, would be no great loss Surfwatch: Where did you go on the 'net today? What are you listening to?: Worst music you've ever heard . What song or tune is going through your head right now? . Obscure composers . Obscure Jazz, 1890-1950 . Whatever, whenever General Questions: Do you have any regrets? . Who are you? . Where are you? . What are you doing here? . What have you done? . Why did you do it? . What have you failed to do? . What are you wearing? . What do you want? . How do you do? . What do you want to do today? . Are you stupid? Specific Questions: What is the cruelest thing you ever did? . Have you ever been lonely? . Have you ever gone hungry? . Are you pissed off? . When is the last time you had sex? . What does it look like where you are? . What are you afraid of? . Do you love me? . What is your definition of Heaven? . What is your definition of Hell? Movies: Last movie you saw . Worst movie you ever saw . Best movie you ever saw Reading: Best book you've ever read . Worst book you've ever read . Last book you read Drunken ramblings: uiphgy8 hxbjf.bklf ghw789- bncgjkvhnqwb=8[ . Payphones: Payphone Project BBS
 

sorabji.com . torturechamber . px.sorabji.com . receipts . contact