Below are snippets for KennethCC.

ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

0
Date Submitted Thu. Sep. 25th, 2008 4:52 AM
Revision 1
Beginner KennethCC
Tags bash
Comments 1 comments
Small amount of bash shell code to produce terminal output. I use this to keep alive ssh connections where the server will automatically disconnect a session where input is not received for a small amount of time.
Needs: A terminal that understands ansi.sys escape codes. Most modern interactive terminals. You might have limited success on serial terminals.
CAVEAT: Admittedly

watch date

would do the same job - but is less fun.
In use I have this in a function in my .bashrc

function keepalive () {

}