Omitting server response to ping timer

Posted by Dexanth on Fri 19 Jun 2009 07:55 AM — 9 posts, 34,068 views.

#0
So, my WRT54G router's firmware is set up in such a way that I can't alter the automatic idle timeout, which disconnects me from MU*s after approximately 10 minutes of idle time.

The only solution for this I've found is setting up a timer to fire every 9 minutes that sends 'ping' to the server and gets a generic 'I don't understand what you mean' response.

I've figured out how to omit the 'ping' from both my output buffer and log, and I would like to omit the generic server reply as well.

Is there any simple way for me to do this?
Australia Forum Administrator #1
Can't you send just a blank line? Anything would keep Mr. WRT54G happy, and then the server won't respond with an error message.
#2
Along the lines of just hitting enter, or hitting spacebar + enter?

Apologies on the sudden cluelessness, I was under the impression completely empty lines didn't get sent at all.
USA #3
They get sent. In Lua, I do this: Send ()
#4
Awesome.

So, second dumb question then : How do I set up the Lua to execute that?
Australia Forum Administrator #5
Set the timer to "send to script" and put the Send () in the "send" box.
#6
And then, hopefully last newbie question, how do I go about omitting the blank line from output? The standard timer omit from output doesn't seem to be kicking in unlike with running a gibberish timer.

Or is that simply a blank reply from the server or something similar?
Australia Forum Administrator #7
Use SendNoEcho instead of Send:

http://www.gammon.com.au/scripts/doc.php?function=SendNoEcho
#8
Perfect! I think that should wrap up everything I wanted in a nice package.

Barring some unexpected failure along the line I think that solves my issue.

Thanks a heap for the help, and for the great client :)