From madams at phantomware.ca Sun Jun 21 10:16:16 2009 From: madams at phantomware.ca (madams at phantomware.ca) Date: Sun, 21 Jun 2009 12:16:16 -0400 Subject: [conquest] AWK script for monitoring metaservers Message-ID: <87d48xftpr.fsf@phantomware.ca> Hi, I stumbled upon Conquest the other day and ended up spending the better part of three hours playing it with my wife. It's a terrific game with a great GL client - it's too bad that it doesn't appear to be too popular these days. Anyway, I got to thinking that it would be useful to have an automated script let us know if anyone else happened to be online. I wrote this up quickly in AWK; it assumes you have the gawk implementation and are sending mail to local users but it might be handy for someone else. Cheers, Matt -- madams at phantomware.ca From madams at phantomware.ca Sun Jun 21 10:18:53 2009 From: madams at phantomware.ca (madams at phantomware.ca) Date: Sun, 21 Jun 2009 12:18:53 -0400 Subject: [conquest] AWK script Message-ID: <87bpohftle.fsf@phantomware.ca> I guess it would help if I actaully included the file... ===File ~/bin/scripts/conquest-metaserver-monitor=========== #!/usr/bin/awk -f # # Queries a Conquest metaserver for games with active players # See http://conquest.radscan.com/conquest.html for more info # # Fields # ===================================================================== # ? SERVER_HOST PORT NAME VERSION MOTD MAX_SLOTS ACTIVE# VACANT# ROBOT# ? ? CONTACT_EMAIL LOCALTIME # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 # BEGIN { FS="|" NetService = "/inet/tcp/0/conquest.radscan.com/1700" print "name" |& NetService while ((NetService |& getline) > 0) { if ($8 > 0) { printf "echo \"Conquest server has %d/%d ACTIVE players (%d VACANT, %d ROBOT)\nconquestgl -f -s %s:%d\n\n\" | mail -s \"ACTIVE CONQUEST GAME\" matt,tamarella", $8, $7, $9, $10, $2, $3 | "/bin/sh" close("/bin/sh") } } close(NetService) } ============================================================ From jon at radscan.com Sun Jun 21 23:11:15 2009 From: jon at radscan.com (Jon Trulson) Date: Sun, 21 Jun 2009 23:11:15 -0600 (MDT) Subject: [conquest] AWK script for monitoring metaservers In-Reply-To: <87d48xftpr.fsf@phantomware.ca> References: <87d48xftpr.fsf@phantomware.ca> Message-ID: On Sun, 21 Jun 2009, madams at phantomware.ca wrote: > Hi, > > I stumbled upon Conquest the other day and ended up spending the > better part of three hours playing it with my wife. It's a terrific > game with a great GL client - it's too bad that it doesn't appear to > be too popular these days. > :( Yeah - COD5 seems to be considered 'better' in some way :) Conquest is an old game - I'm glad people still play it once and a while. I have been seriously remis in playing - maybe next week sometime. > Anyway, I got to thinking that it would be useful to have an automated > script let us know if anyone else happened to be online. I wrote this > up quickly in AWK; it assumes you have the gawk implementation and > are sending mail to local users but it might be handy for someone > else. > Thanks! -- Happy cheese in fear | Jon Trulson against oppressor, rebel! | mailto:jon at radscan.com Brocolli, hostage. -Unknown | A828 C19D A087 F20B DFED | 67C9 6F32 31AB E647 B345 From dwpayne at gravitic.com Mon Jun 22 05:37:18 2009 From: dwpayne at gravitic.com (David W. Payne) Date: Mon, 22 Jun 2009 05:37:18 -0600 Subject: [conquest] AWK script for monitoring metaservers In-Reply-To: References: <87d48xftpr.fsf@phantomware.ca> Message-ID: <4A3F6CEE.2060105@gravitic.com> Course, with you (Matt) and your wife willing to play.... Their are four or five of us now that can get together for a match.... ;) Just set it up, Jon. ;) Dave Jon Trulson wrote: > On Sun, 21 Jun 2009, madams at phantomware.ca wrote: > >> Hi, >> >> I stumbled upon Conquest the other day and ended up spending the >> better part of three hours playing it with my wife. It's a terrific >> game with a great GL client - it's too bad that it doesn't appear to >> be too popular these days. >> > > :( Yeah - COD5 seems to be considered 'better' in some way :) > Conquest is an old game - I'm glad people still play it once and a > while. I have been seriously remis in playing - maybe next week > sometime. > >> Anyway, I got to thinking that it would be useful to have an automated >> script let us know if anyone else happened to be online. I wrote this >> up quickly in AWK; it assumes you have the gawk implementation and >> are sending mail to local users but it might be handy for someone >> else. >> > > Thanks! > From madams at phantomware.ca Mon Jun 22 09:24:13 2009 From: madams at phantomware.ca (madams at phantomware.ca) Date: Mon, 22 Jun 2009 11:24:13 -0400 Subject: [conquest] Improved AWK script for monitoring metaservers Message-ID: <87prcw2swy.fsf@phantomware.ca> For the record, here is an improved AWK script that accepts some variables via the command line. I use it like this in my crontab: @hourly ~/bin/scripts/conquest-metaserver-monitor -v email=matt,tamarella But you can also specify an optional metaserver name & port number using additional -v arguments. Hope someone finds this useful, Matt ===File ~/bin/scripts/conquest-metaserver-monitor=========== #!/usr/bin/awk -f # # Queries a Conquest metaserver for games with active players # See http://conquest.radscan.com/conquest.html for more info # # Accepts the following -v parameters # server (name of metaserver to query) # port (port of metaserver to query) # email (email addresses to notify, separated by commas) # # Fields # ===================================================================== # ? SERVER_HOST PORT NAME VERSION MOTD MAX_SLOTS ACTIVE# VACANT# ROBOT# ? ? CONTACT_EMAIL LOCALTIME # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 # BEGIN { if (!server) server = "conquest.radscan.com" if (!port) port = "1700" if (!email) { printf "%s: You must set the email addresses to notify using `-v email=addr1,addr2'\n", ARGV[0] > "/dev/stderr" exit } FS="|" NetService = "/inet/tcp/0/" server "/" port print "name" |& NetService while ((NetService |& getline) > 0) { if ($8 > 0) { printf "echo \"Conquest server has %d/%d ACTIVE players (%d VACANT, %d ROBOT)\nconquestgl -f -s %s:%d\n\n\" | mail -s \"ACTIVE CONQUEST GAME\" %s", $8, $7, $9, $10, $2, $3, email | "/bin/sh" close("/bin/sh") } } close(NetService) } ============================================================ From ccallahansanto at yahoo.com Mon Jun 22 12:49:03 2009 From: ccallahansanto at yahoo.com (Chris Callahan-Santo) Date: Mon, 22 Jun 2009 11:49:03 -0700 (PDT) Subject: [conquest] AWK script for monitoring metaservers Message-ID: <769892.45695.qm@web31813.mail.mud.yahoo.com> If you want to make it popular, it's time to make it into a facebook application. :) Can you jam that GL client into a web browser???? - Chris --- On Sun, 6/21/09, Jon Trulson wrote: From: Jon Trulson Subject: Re: [conquest] AWK script for monitoring metaservers To: madams at phantomware.ca Cc: conquest at radscan.com Date: Sunday, June 21, 2009, 10:11 PM On Sun, 21 Jun 2009, madams at phantomware.ca wrote: > Hi, > > I stumbled upon Conquest the other day and ended up spending the > better part of three hours playing it with my wife.? It's a terrific > game with a great GL client - it's too bad that it doesn't appear to > be too popular these days. > ? :(? Yeah - COD5 seems to be considered 'better' in some way :) ? Conquest is an old game - I'm glad people still play it once and a ? while.? I have been seriously remis in playing - maybe next week ? sometime. > Anyway, I got to thinking that it would be useful to have an automated > script let us know if anyone else happened to be online.? I wrote this > up quickly in AWK; it assumes you have the gawk implementation and > are sending mail to local users but it might be handy for someone > else. > ? Thanks! -- Happy cheese in fear? ? ? ? ? ? ? ???| Jon Trulson against oppressor, rebel!? ? ? ? ? ? | mailto:jon at radscan.com Brocolli, hostage.? ? ???-Unknown? ? | A828 C19D A087 F20B DFED ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???| 67C9 6F32 31AB E647 B345 -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnclute at imagi.net Mon Jun 22 22:26:59 2009 From: johnclute at imagi.net (John) Date: Mon, 22 Jun 2009 22:26:59 -0600 Subject: [conquest] Improved AWK script for monitoring metaservers In-Reply-To: <87prcw2swy.fsf@phantomware.ca> References: <87prcw2swy.fsf@phantomware.ca> Message-ID: <1245731219.7115.2.camel@john-desktop> Wow, great script.... On Mon, 2009-06-22 at 11:24 -0400, madams at phantomware.ca wrote: > For the record, here is an improved AWK script that accepts some > variables via the command line. > > I use it like this in my crontab: > > @hourly ~/bin/scripts/conquest-metaserver-monitor -v email=matt,tamarella > > But you can also specify an optional metaserver name & port number > using additional -v arguments. > > > Hope someone finds this useful, > > Matt > > ===File ~/bin/scripts/conquest-metaserver-monitor=========== > #!/usr/bin/awk -f > # > # Queries a Conquest metaserver for games with active players > # See http://conquest.radscan.com/conquest.html for more info > # > # Accepts the following -v parameters > # server (name of metaserver to query) > # port (port of metaserver to query) > # email (email addresses to notify, separated by commas) > # > # Fields > # ===================================================================== > # ? SERVER_HOST PORT NAME VERSION MOTD MAX_SLOTS ACTIVE# VACANT# ROBOT# ? ? CONTACT_EMAIL LOCALTIME > # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 > # > > BEGIN { > if (!server) > server = "conquest.radscan.com" > if (!port) > port = "1700" > > if (!email) { > printf "%s: You must set the email addresses to notify using `-v email=addr1,addr2'\n", ARGV[0] > "/dev/stderr" > exit > } > > FS="|" > NetService = "/inet/tcp/0/" server "/" port > print "name" |& NetService > > while ((NetService |& getline) > 0) { > if ($8 > 0) { > printf "echo \"Conquest server has %d/%d ACTIVE players (%d VACANT, %d ROBOT)\nconquestgl -f -s %s:%d\n\n\" | mail -s \"ACTIVE CONQUEST GAME\" %s", > $8, $7, $9, $10, $2, $3, email | "/bin/sh" > close("/bin/sh") > } > } > > close(NetService) > } > ============================================================ From jon at radscan.com Tue Jun 23 03:18:20 2009 From: jon at radscan.com (Jon Trulson) Date: Tue, 23 Jun 2009 03:18:20 -0600 (MDT) Subject: [conquest] Improved AWK script for monitoring metaservers In-Reply-To: <87prcw2swy.fsf@phantomware.ca> References: <87prcw2swy.fsf@phantomware.ca> Message-ID: On Mon, 22 Jun 2009, madams at phantomware.ca wrote: > For the record, here is an improved AWK script that accepts some > variables via the command line. > > I use it like this in my crontab: > > @hourly ~/bin/scripts/conquest-metaserver-monitor -v email=matt,tamarella > > But you can also specify an optional metaserver name & port number > using additional -v arguments. > > > Hope someone finds this useful, > > Matt > I'll add it to contrib in the repo along with a readme. Thanks! PS: didn't even know you could do stuff like that with awk :) > ===File ~/bin/scripts/conquest-metaserver-monitor=========== > #!/usr/bin/awk -f > # > # Queries a Conquest metaserver for games with active players > # See http://conquest.radscan.com/conquest.html for more info > # > # Accepts the following -v parameters > # server (name of metaserver to query) > # port (port of metaserver to query) > # email (email addresses to notify, separated by commas) > # > # Fields > # ===================================================================== > # ? SERVER_HOST PORT NAME VERSION MOTD MAX_SLOTS ACTIVE# VACANT# ROBOT# ? ? CONTACT_EMAIL LOCALTIME > # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 > # > > BEGIN { > if (!server) > server = "conquest.radscan.com" > if (!port) > port = "1700" > > if (!email) { > printf "%s: You must set the email addresses to notify using `-v email=addr1,addr2'\n", ARGV[0] > "/dev/stderr" > exit > } > > FS="|" > NetService = "/inet/tcp/0/" server "/" port > print "name" |& NetService > > while ((NetService |& getline) > 0) { > if ($8 > 0) { > printf "echo \"Conquest server has %d/%d ACTIVE players (%d VACANT, %d ROBOT)\nconquestgl -f -s %s:%d\n\n\" | mail -s \"ACTIVE CONQUEST GAME\" %s", > $8, $7, $9, $10, $2, $3, email | "/bin/sh" > close("/bin/sh") > } > } > > close(NetService) > } > ============================================================ > -- Happy cheese in fear | Jon Trulson against oppressor, rebel! | mailto:jon at radscan.com Brocolli, hostage. -Unknown | A828 C19D A087 F20B DFED | 67C9 6F32 31AB E647 B345 From madams at phantomware.ca Wed Jun 24 09:08:15 2009 From: madams at phantomware.ca (madams at phantomware.ca) Date: Wed, 24 Jun 2009 11:08:15 -0400 Subject: [conquest] Improved AWK script for monitoring metaservers In-Reply-To: (message from Jon Trulson on Tue, 23 Jun 2009 03:18:20 -0600 (MDT)) References: <87prcw2swy.fsf@phantomware.ca> Message-ID: <87ab3x4qlc.fsf@phantomware.ca> > I'll add it to contrib in the repo along with a readme. Thanks! Cool. You may want to mention that it requires the gawk implementation, I don't believe mawk or other awks will work. > PS: didn't even know you could do stuff like that with awk :) Yeah, awk is pretty neat. I always enjoy an excuse to use it. Thanks, Matt From jon at radscan.com Wed Jun 24 20:00:01 2009 From: jon at radscan.com (Jon Trulson) Date: Wed, 24 Jun 2009 20:00:01 -0600 (MDT) Subject: [conquest] AWK script for monitoring metaservers In-Reply-To: <4A3F6CEE.2060105@gravitic.com> References: <87d48xftpr.fsf@phantomware.ca> <4A3F6CEE.2060105@gravitic.com> Message-ID: On Mon, 22 Jun 2009, David W. Payne wrote: > Course, with you (Matt) and your wife willing to play.... > > Their are four or five of us now that can get together for a match.... ;) > > Just set it up, Jon. ;) > heh, I can try for sometime this weekend... :) > Dave > > Jon Trulson wrote: >> On Sun, 21 Jun 2009, madams at phantomware.ca wrote: >> >>> Hi, >>> >>> I stumbled upon Conquest the other day and ended up spending the >>> better part of three hours playing it with my wife. It's a terrific >>> game with a great GL client - it's too bad that it doesn't appear to >>> be too popular these days. >>> >> >> :( Yeah - COD5 seems to be considered 'better' in some way :) >> Conquest is an old game - I'm glad people still play it once and a >> while. I have been seriously remis in playing - maybe next week >> sometime. >> >>> Anyway, I got to thinking that it would be useful to have an automated >>> script let us know if anyone else happened to be online. I wrote this >>> up quickly in AWK; it assumes you have the gawk implementation and >>> are sending mail to local users but it might be handy for someone >>> else. >>> >> >> Thanks! >> > -- Happy cheese in fear | Jon Trulson against oppressor, rebel! | mailto:jon at radscan.com Brocolli, hostage. -Unknown | A828 C19D A087 F20B DFED | 67C9 6F32 31AB E647 B345 From jon at radscan.com Wed Jun 24 20:01:56 2009 From: jon at radscan.com (Jon Trulson) Date: Wed, 24 Jun 2009 20:01:56 -0600 (MDT) Subject: [conquest] AWK script for monitoring metaservers In-Reply-To: <769892.45695.qm@web31813.mail.mud.yahoo.com> References: <769892.45695.qm@web31813.mail.mud.yahoo.com> Message-ID: On Mon, 22 Jun 2009, Chris Callahan-Santo wrote: > > If you want to make it popular, it's time to make it into a facebook application. :) > Can you jam that GL client into a web browser???? Maybe - I hear there are some emerging 3D standards for web browsers... Guess a java client would need to be written? Maybe a mingw port for windows would be easier :) > - Chris > > --- On Sun, 6/21/09, Jon Trulson wrote: > > From: Jon Trulson > Subject: Re: [conquest] AWK script for monitoring metaservers > To: madams at phantomware.ca > Cc: conquest at radscan.com > Date: Sunday, June 21, 2009, 10:11 PM > > On Sun, 21 Jun 2009, madams at phantomware.ca wrote: > >> Hi, >> >> I stumbled upon Conquest the other day and ended up spending the >> better part of three hours playing it with my wife.? It's a terrific >> game with a great GL client - it's too bad that it doesn't appear to >> be too popular these days. >> > > ? :(? Yeah - COD5 seems to be considered 'better' in some way :) > ? Conquest is an old game - I'm glad people still play it once and a > ? while.? I have been seriously remis in playing - maybe next week > ? sometime. > >> Anyway, I got to thinking that it would be useful to have an automated >> script let us know if anyone else happened to be online.? I wrote this >> up quickly in AWK; it assumes you have the gawk implementation and >> are sending mail to local users but it might be handy for someone >> else. >> > > ? Thanks! > > -- Happy cheese in fear? ? ? ? ? ? ? ???| Jon Trulson > against oppressor, rebel!? ? ? ? ? ? | mailto:jon at radscan.com > Brocolli, hostage.? ? ???-Unknown? ? | A828 C19D A087 F20B DFED > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???| 67C9 6F32 31AB E647 B345 > > -- Happy cheese in fear | Jon Trulson against oppressor, rebel! | mailto:jon at radscan.com Brocolli, hostage. -Unknown | A828 C19D A087 F20B DFED | 67C9 6F32 31AB E647 B345 From jacobgodserv at gmail.com Wed Jun 24 21:19:58 2009 From: jacobgodserv at gmail.com (Jacob Godserv) Date: Wed, 24 Jun 2009 23:19:58 -0400 Subject: [conquest] AWK script for monitoring metaservers In-Reply-To: References: <87d48xftpr.fsf@phantomware.ca> <4A3F6CEE.2060105@gravitic.com> Message-ID: <2e0007040906242019t57be147dh627f1e83899e566a@mail.gmail.com> (Resending; previous e-mail was not sent to conquest at radscan.com) On Wed, Jun 24, 2009 at 10:00 PM, Jon Trulson wrote: > On Mon, 22 Jun 2009, David W. Payne wrote: > > ?heh, I can try for sometime this weekend... :) I used to play this game a while ago, and signed up for the (once dead) mailing list, primarily because no one else played it. I am also interested in playing in a group setting (although I cannot guarantee my presence tonight - might be able to later this week ;). -- Jacob "For then there will be great distress, unequaled from the beginning of the world until now ? and never to be equaled again. If those days had not been cut short, no one would survive, but for the sake of the elect those days will be shortened." Are you ready? From johnclute at imagi.net Thu Jun 25 09:14:50 2009 From: johnclute at imagi.net (John) Date: Thu, 25 Jun 2009 09:14:50 -0600 Subject: [conquest] AWK script for monitoring metaservers In-Reply-To: <2e0007040906242019t57be147dh627f1e83899e566a@mail.gmail.com> References: <87d48xftpr.fsf@phantomware.ca> <4A3F6CEE.2060105@gravitic.com> <2e0007040906242019t57be147dh627f1e83899e566a@mail.gmail.com> Message-ID: <1245942890.7115.6.camel@john-desktop> wouldn't mind doing a conqathon,however have family in town so this week is somewhat tough.. On Wed, 2009-06-24 at 23:19 -0400, Jacob Godserv wrote: > (Resending; previous e-mail was not sent to conquest at radscan.com) > > On Wed, Jun 24, 2009 at 10:00 PM, Jon Trulson wrote: > > On Mon, 22 Jun 2009, David W. Payne wrote: > > > > heh, I can try for sometime this weekend... :) > > I used to play this game a while ago, and signed up for the (once > dead) mailing list, primarily because no one else played it. I am also > interested in playing in a group setting (although I cannot guarantee > my presence tonight - might be able to later this week ;). >