Price: $0 (GPL License)
Current Version: 1.2.4
Date Modified: Feb. 17, 2003
Overview
Spinner is an anti-idle program that displays a little "spinning" ASCII character in the top left corner of your terminal. To make this effect it cycles through punctuation marks like this " - \ | / - \ | / ... " (try it to see). By default the character is drawn in inverse video (or your terminal's equivalent). But you can turn this off with the -i switch. In spinner mode Spinner supports any terminal capable of handling VT100 style escape codes. In null mode (-n switch) Spinner supports any terminal. In null mode there is no visible output, and Spinner will not interfere with your terminal or scrollback. If you find the little spinner in the top left corner to be distracting use null mode. (-n switch).
Spinner is useful for keeping telnet and ssh links from dropping due to inactivity. Many firewalls, and some ISPs drop connections when they are perceived as idle. By having spinner running the server is constantly sending a tiny amount of data over the link, preserving the connection. As of version 1.2 Spinner can also be activated with the -n switch so that, instead of displaying a spinner, it simply sends out a periodic null character to the terminal. This achieves the same anti-idle benefit without disturbing your screen. But it lacks the coolness factor of a little spinner in the corner of the terminal...
Thus (for search engines) Spinner is an anti-idle, timeout preventing, background daemon process for unix variants including linux. Spinner is known to compile and work properly under NetBSD 1.5 and 1.6, Mac OS X 10.2, linux 2.2 and 2.4.
Spinner also has a (mainly fun) mode I like to call "Ghost in the Machine" mode. In this mode you can use spinner to write the spinner character to ANY tty, not just your own. This requires adequate permissions, of course. (see below)
Details
Basic summary: (from spinner -h)
Usage: spinner[-IntTuvl<path>[f<path>|F][p<prio>|P]] [delay] -f <path> Set pid file path (default is ~/.spinner.pid) -F Do *not* create a pid file -I Do *not* use inverse video for spinner -l <path> Set log file path (for debugging). Off by default. -L Display the license -n Send only null characters. (No visible output.) -p <priority> Specify process priority to use -P Do *not* change process priority (default is to make nice) -r Reset term on quit (Use if you get left in inverse a lot.) -R Reset the term and Quit immediately. (nothing else) -t <tty path> Specify path of TTY to which to write -T Ignore incompatible TERM environment var setting -u Delay is in microseconds instead of seconds -v Verbose mode (lots of output) Returns: 0 on success, non-zero on failure. Launches into the background on success. Use: kill `cat <pidfile>` to stop.
kill `cat ~/.spinner.pid`
Note that those are backticks (top left key below ESC, same key with ~). Of course you can also just find Spinner in your process list and kill it manually that way. Spinner's pid file is NOT a lock file. It will be overwritten every time you launch a copy of Spinner. So if you have multiple spinners running you will have to kill them manually.
If you use an extremely low delay on a slow link, or use a slow-drawing terminal, be prepared for Spinner to slow your terminal down. I would say, "Don't do that!" Spinner is coded to be very efficient in its main loop. Only one write statement and one check to be sure the tty is active per iteration. Since Spinner is meant as an anti-idle tool you will most likely keep the delay high (but less than 30 sec or so depending upon what it is that is timing out your connection to begin with).
If your terminal gets stuck in an inconsistent (read "whacked") state you can try to fix it by running Spinner with the -R switch. With this switch ALL Spinner will do is send a vt100 reset code to the tty (then quit).
Using the -n switch will avoid these problem altogether by sending only null characters to the terminal. You loose the cool little spinner effect, however.
Download
Note: We have begun signing our software with our GPG public key, available from this secure server. MD5 sums are here.
Source
- Version 1.2.4
- spinner v1.2.4 ( gpg sig)
(USA-Local HTTP Server)(746) - GZIPed TAR file (source code, Install directions, Makefile)
- spinner v1.2.4 ( gpg sig)
(USA-Local FTP Server)(76K) - GZIPed TAR file (source code, Install directions, Makefile)
Revision History
Beta Testers