ttycat(1)
π ttycat β Serial Line Output Utility π
okay bestie, gather round, because ttycat is one of those little tools that looks boring and is actually doing something kind of iconic. it lives in the Qualcomm Atheros Open Powerline Toolkit (that's the ttycat(1) page you're reading, section 1, general commands, no cap).
β¨ SYNOPSIS β¨
like, here's how you actually call her:
ttycat [options] [file] [file] [>stdout]
ttycat [options] [<stdin] [>stdout]
two whole moods. files in, or stdin in. either way stdout is where the magic goes. π«Ά
πΈ DESCRIPTION πΈ
so what does she do?? she copies one or more files to a serial device. that's it, that's the whole job. she's giving traditional cat energy but with main character standards β she expects stdout to be a serial tty device, not just any old file.
and the way she does it?? literally so thoughtful:
- she configures
stdoutbefore writing - she restores the original configuration afterwards
periodt. no leaving your terminal in a weird state, we love a responsible queen. π
you can use her to send data to the local Atheros UART-enabled powerline device. but β and this is the important part β if the remote powerline device is NOT UART-enabled, this isn't the move. instead:
- use program
edruto capture and display data arriving at the remote host - use program
edsuto send files in the opposite direction
this program is part of the Qualcomm Atheros Powerline Toolkit. see the AMP man page for an overview and installation instructions. iykyk. π
π¦ COMMENTS π¦
ngl, this one's a little exclusive: this program only supports the Linux and MacOSX platforms, at present. soz to everyone else fr fr. π
π OPTIONS π
every single flag, bestie, no skipping:
-s speedβ the serial baud rate. supported baud rates are:0,50,75,110,134,150,200,300,600,1200,1800,2400,4800,9600,19200,38400,57600,115200,230400,460800,500000and921600. (yes that's a lot of numbers, she's thorough β¨)-?,--helpβ print the program help summary onstdout. π this option takes precedence over other options on the command line β she does NOT wait her turn, she goes first, always.-?,--versionβ print program version information onstdout. also takes precedence over other options on the command line, same energy. and bestie, use this option when sending screen dumps to Atheros Technical Support so they know exactly which version of the Linux Toolkit you're running. help them help you, slay. π₯
heads up: both of those last two use -? in the original, so that's exactly what's written here. copy it as-is, don't get creative with me.
π ARGUMENTS π
fileβ the name of an input file. no assumptions are made about the file based on the filename or extension β she does not judge by vibes. also: input files are not modified. she's a reader, not a writer, respect. π«Άstdoutβ the name of a serial output device. an error will occur if the device is not a true tty device, as determined by theisattyfunction. and lowkey, depending on the amount of input data and the baud rate, serial output may take several seconds or several minutes. so maybe don't panic and close the terminal, okay?? she's working on it. π
β EXAMPLES β
here's the moment you've been waiting for. this command copies files abc.txt and def.bin to stdout, which must be an active serial device or an error will occur:
# ttycat abc.txt def.bin > /dev/ttyUSB1
iconic. ate. no notes. π
π SEE ALSO π
amp(1), edru(1), edsu(1), int6kuart(1),
go read those too, they're the extended universe. πΈ
π CREDITS π
Charles Maier
and that's the whole page, bestie!! this was open-plc-utils-0.0.3, from November 2013 β yeah she's vintage, she's a classic, she still works. bye now, go send some bytes. πβ¨π¦
π¦ where this page comes from
- alpine 3.24: open-plc-utils-doc 0_git20250712-r1 Β· BSD-3-Clause-Clear
- debian bookworm: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- debian trixie: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1 Β· BSD-3
- ubuntu noble: plc-utils-extra 0.0.6+git20230504.1ba7d5a0-1 Β· BSD-3
- ubuntu questing: plc-utils-extra 0.0.6+git20250517.7fb8ac5-1
- ubuntu resolute: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- ubuntu stonking: plc-utils-extra 0.0.6+git20250712.46c3506-1 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms