Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: A "better" Putty keep-alive

by davidrw (Prior)
on Aug 11, 2005 at 16:16 UTC ( [id://483017]=note: print w/replies, xml ) Need Help??


in reply to A "better" Putty keep-alive

server-side method instead of your client-side (so a tradeoff there), but this is what i usually use:
i put this in my .bashrc (if statement is so that it won't run during batch ssh or scp logins):
if test "xterm" = "$TERM" ; then /home/myname/bin/keepalive & fi
and /home/myname/bin/keepalive is just (periodically print a space and a backspace):
#!/bin/bash while test 1 ; do sleep 600; echo -ne " \b"; done
Only side effect is that if a vi is left open, it appears to make the character under the cursor disappear (but really doesn't) .. ctrl-L to refresh the screen "fixes" it if i even notice it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://483017]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found