|
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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! |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
Loto Apprentice
Joined: 05 May 2003 Posts: 194
|
Posted: 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! |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: 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 |
|
|
|
|
|