Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Omitting server response to ping timer

Omitting server response to ping timer

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Dexanth   (5 posts)  Bio
Date Fri 19 Jun 2009 07:55 AM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 19 Jun 2009 08:11 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Dexanth   (5 posts)  Bio
Date Reply #2 on Fri 19 Jun 2009 02:27 PM (UTC)
Message
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.
Top

Posted by Fadedparadox   USA  (91 posts)  Bio
Date Reply #3 on Fri 19 Jun 2009 02:52 PM (UTC)
Message
They get sent. In Lua, I do this: Send ()
Top

Posted by Dexanth   (5 posts)  Bio
Date Reply #4 on Fri 19 Jun 2009 08:23 PM (UTC)
Message
Awesome.

So, second dumb question then : How do I set up the Lua to execute that?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Fri 19 Jun 2009 10:18 PM (UTC)
Message
Set the timer to "send to script" and put the Send () in the "send" box.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Dexanth   (5 posts)  Bio
Date Reply #6 on Sat 20 Jun 2009 03:29 AM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #7 on Sat 20 Jun 2009 03:42 AM (UTC)
Message
Use SendNoEcho instead of Send:

http://www.gammon.com.au/scripts/doc.php?function=SendNoEcho

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Dexanth   (5 posts)  Bio
Date Reply #8 on Sat 20 Jun 2009 03:47 AM (UTC)
Message
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 :)
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


24,403 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.