Page 38 of 60 FirstFirst ... 28363738394048 ... LastLast
Results 371 to 380 of 595

Thread: 4th Annual Guess the LEH Draw

  1. #371
    Join Date
    Oct 2014
    Location
    LM
    Posts
    93

    Re: 4th Annual Guess the LEH Draw

    Quote Originally Posted by caddisguy View Post
    Since I'm such a mega-nerd, today I wrote a program that will check the LEH site every 2 minutes.
    Haha this is amazing. Written in what? Can I PM you an email?

  2. #372
    Join Date
    Aug 2010
    Location
    Langley
    Posts
    6,071

    Re: 4th Annual Guess the LEH Draw

    Quote Originally Posted by metalface View Post
    Haha this is amazing. Written in what? Can I PM you an email?
    It's written in perl... here's a copy of the script for anyone who runs Linux (or has windows and wants to install perl) ... here's the basic idea (tho i just modified it a list on-the-fly before posting but the one running live is similar)

    $sm = "/usr/sbin/sendmail";
    $from = 'lehout@stabs.org';
    $subj = 'caddisguys script thinks LEH is out';

    while(1) {
    sleep 120;
    $lehpage = `curl -s http://www.env.gov.bc.ca/fw/wildlife/hunting/resident/leh.html`;
    if($lehpage =~ /LEH/) {
    unless($lehpage =~ /LEH Draw has not yet been run/) {
    @emaillist = `cat emaillist.txt`;
    foreach(@emaillist) {
    chomp();
    open (MAIL, "| $sm -t") || die("Can't open sendmail\n");
    print MAIL "From: $from\n";
    print MAIL "To: $_\n";
    print MAIL "$subj\n";
    print MAIL "For some reason, caddisguy's script thinks LEH is out. Maybe it is actually out?! Good time to check!! Apologies if this is a false alarm.\n";
    close(MAIL);
    exit;
    }
    }
    }

    and yes, PM if you want a notification. I'll add up to 50 addresses... first come, first served.

  3. #373
    Join Date
    Sep 2006
    Location
    In my traditional territory
    Posts
    19,424

    Re: 4th Annual Guess the LEH Draw

    Quote Originally Posted by chevy
    Sorry!!!! but in all honesty, i could care less,, what todbartell! actually thinks
    Quote Originally Posted by Will View Post
    but man how much pepporoni can your arshole take anyways !

  4. #374
    Join Date
    Jan 2010
    Posts
    1,854

    Re: 4th Annual Guess the LEH Draw

    Rhyme time... Tomorrow is the day? No F****'n way!

    This is a joke.

  5. #375
    Join Date
    Aug 2010
    Location
    Langley
    Posts
    6,071

    Re: 4th Annual Guess the LEH Draw

    Looks like my inbox filled up. Just deleted a bunch of messages. If anyone else was trying to reach me to get their email addresses added to the experimental notification script try now. In theory (99% certain as I do this sort of thing for a living and stuff usually goes as planned) you will get an email within 1-120 seconds of the results being posted.

  6. #376
    Join Date
    Oct 2014
    Posts
    254

    Re: 4th Annual Guess the LEH Draw

    Quote Originally Posted by BCHunterTV View Post
    I have an inside source, lol.

    I got a call saying it will be run today... and hopefully online before they leave for the day.

    415 is the time it's getting run I was told,

    I haven't forgoten about this..............

  7. #377
    Join Date
    Apr 2013
    Location
    Kamloops
    Posts
    1,721

    Re: 4th Annual Guess the LEH Draw

    I'm thinking you should have used the "status" url...

    http://www.env.gov.bc.ca/fw/wildlife...eh.html#Status


    Quote Originally Posted by caddisguy View Post
    It's written in perl... here's a copy of the script for anyone who runs Linux (or has windows and wants to install perl) ... here's the basic idea (tho i just modified it a list on-the-fly before posting but the one running live is similar)

    $sm = "/usr/sbin/sendmail";
    $from = 'lehout@stabs.org';
    $subj = 'caddisguys script thinks LEH is out';

    while(1) {
    sleep 120;
    $lehpage = `curl -s http://www.env.gov.bc.ca/fw/wildlife/hunting/resident/leh.html`;
    if($lehpage =~ /LEH/) {
    unless($lehpage =~ /LEH Draw has not yet been run/) {
    @emaillist = `cat emaillist.txt`;
    foreach(@emaillist) {
    chomp();
    open (MAIL, "| $sm -t") || die("Can't open sendmail\n");
    print MAIL "From: $from\n";
    print MAIL "To: $_\n";
    print MAIL "$subj\n";
    print MAIL "For some reason, caddisguy's script thinks LEH is out. Maybe it is actually out?! Good time to check!! Apologies if this is a false alarm.\n";
    close(MAIL);
    exit;
    }
    }
    }

    and yes, PM if you want a notification. I'll add up to 50 addresses... first come, first served.
    Last edited by hare_assassin; 07-02-2015 at 08:27 AM.

  8. #378
    Join Date
    Aug 2010
    Location
    Langley
    Posts
    6,071

    Re: 4th Annual Guess the LEH Draw

    Quote Originally Posted by hare_assassin View Post
    I'm thinking you should have used the "status" url...

    http://www.env.gov.bc.ca/fw/wildlife...eh.html#Status
    http://www.env.gov.bc.ca/fw/wildlife...ident/leh.html actually grabs the entire page in html format so #Status isn't necessary. It will result in the page being "displayed" in a browser with the Status section expanded, but when grabbing the entire page in html format, it's not necessary as curl doesn't interrupt the html for display purposes like a browser would:

    flycast@caddis:~$ curl -s http://www.env.gov.bc.ca/fw/wildlife...ident/leh.html | grep -E 'Draw.*yet'
    2015/2016 LEH Draw has not yet been run.
    flycast@caddis:~$ curl -s 'http://www.env.gov.bc.ca/fw/wildlife/hunting/resident/leh.html#Status' | grep -E 'Draw.*yet'
    2015/2016 LEH Draw has not yet been run.

    ^^^ Same deal as far as the script is concerned
    Last edited by caddisguy; 07-02-2015 at 08:42 AM.

  9. #379
    Join Date
    Apr 2013
    Location
    Kamloops
    Posts
    1,721

    Re: 4th Annual Guess the LEH Draw

    Ah, I see. Cool.

  10. #380
    Join Date
    Nov 2007
    Location
    Outside Kamloops city limits!
    Posts
    4,287

    Re: 4th Annual Guess the LEH Draw

    Load your rifles,paint your faces and get decked out in your finest Camo folks, Cuz today is the day! We got the bus run'in right now, so the second we get our draws, we's gone!!! 47 of us put draws in for doe's, so even if we get one doe between us, we'll have our winters meat early this year! Good Luck to All!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •