|
Omitting server response to ping timer
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Dexanth
(5 posts) bio
|
| Date |
Fri 19 Jun 2009 07:55 AM (UTC) [ quote
] |
| 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 (18,770 posts) bio
Forum Administrator |
| Date |
Reply #1 on Fri 19 Jun 2009 08:11 AM (UTC) [ quote
] |
| 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) [ quote
] |
| 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 |
Dexanth
(5 posts) bio
|
| Date |
Reply #4 on Fri 19 Jun 2009 08:23 PM (UTC) [ quote
] |
| Message |
Awesome.
So, second dumb question then : How do I set up the Lua to execute that? | top |
|
| Posted by |
Nick Gammon
Australia (18,770 posts) bio
Forum Administrator |
| Date |
Reply #5 on Fri 19 Jun 2009 10:18 PM (UTC) [ quote
] |
| 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) [ quote
] |
| 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 (18,770 posts) bio
Forum Administrator |
| Date |
Reply #7 on Sat 20 Jun 2009 03:42 AM (UTC) [ quote
] |
| Message |
|
| Posted by |
Dexanth
(5 posts) bio
|
| Date |
Reply #8 on Sat 20 Jun 2009 03:47 AM (UTC) [ quote
] |
| 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.
1,839 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )