WHAT
cat-tty is a small utility to write+read to+from a tty device. It is derived partially from the example "miniterm.c", and (just a couple of ideas) from "agetty.c".
miniterm.c was found inside "lpg-0.4.examples.tar.gz". "lpg-0.4.examples.tar.gz" was downloaded in march 2006 from http://www.ibiblio.org/pub/linux/docs/linux-doc-project/programmers-guide/
agetty.c is a part of util-linux (see www.kernel.org).
BUILD
Simply launch the tiny build script:
./Build
I personally tried to compile catty (with success) under the following platforms:
- Linux Kernel 2.4.32 binutils 2.16 gcc 2.95.3 glibc 2.2.5
- Cygwin cygwin emulation engine 1.5.19-4, binutils 20050610-1 gcc 3.4.4-1
If you want, please send me a tiny report of your successful compilation,
IF AND ONLY IF the compilation environment is strongly different from
the ones listed above.
The report should be in the same form of the reports above.
INSTALL
catty is a tool desiged for experts:
you'll have to manually copy it in the
best place for your needs (/usr/bin, /usr/sbin, or ~/bin).
USAGE
Usage is displayed launching catty with no (valid) args.
WHY
I had a strong need to program my mobile phone before launching the real SMS daemon.
One of my goal was: send to the modem some AT commands, and produce an error if modem doesn't answer. And moreover, my mobile phone can power-off and power-on when receives a couple of AT commands; useful, isn't it? ;-) In fact, i use catty to power-off my mobile phone in the night.
I tried almost everything, from "cu", to "minicom", to "ckermit" packages, and many others less-known packages, but none of them was suitable to my very simple needs: echo some strings to a modem, and have the modem answer to stdout, just like "cat" does with files, or "netcat" does with tcp/udp connections.
VERSION
See NEWS.
DOWNLOAD
___
DO
use catty to send some chars to a tty device
(normally a serial line),
and to see the answer that comes back.
use catty in pipes and shell scripts:
it's JUST intended for that use!
use catty to add used space to your disk(s):
if you need just a few Kbytes more of used space, well, catty is perfect for you ;-D.
DON'T
don't use catty as a terminal emulator; it
hasn't and will never have terminal emulation.
don't use catty to send a file over a tty line,
because it operates some little translations to your chars.
don't use catty to waste the space of your drive:
i was joking, in the section 'DO'.
