Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Fri Aug 20, 2004 12:14 am   

Ping
 
Is there a way to set an alias up to ping the MUD? And return the answer? Because it'd be great not to have to go to the character window to ping.
_________________
*Llewlyn* makes a strange sound but is suddenly very silent as you place a silver sai in his back!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Aug 20, 2004 11:05 am   
 
A not so elegant solution would be to use the #LAUNCH command to execute a ping and store the results to a file. Like:
#LAUNCH {cmd /c "ping zuggsoft.com > pingresult.txt"}

You can then have an alarm fire after what you consider enough time so the ping has time to finish and the alarm can open up the text file and parse the results.
_________________
Kjata
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sat Aug 21, 2004 12:06 am   
 
Is it possible to store it to a variable? like instead of pingresults.txt @ping or something?
_________________
*Llewlyn* makes a strange sound but is suddenly very silent as you place a silver sai in his back!
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: Sat Aug 21, 2004 2:33 pm   
 
Try using %read:
Quote:
#LAUNCH {cmd /c "ping zuggsoft.com > pingresult.txt"}
#ALA +5 {#FILE 1 "pingresult.txt"
ping = %read(1,3)
#CLOSE 1}
_________________
.geniusclown
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net