PLAYBACK(1)
π PLAYBACK(1) β the manual page, but make it cute π
General Commands Manual β¨ bestie edition β¨
πΈ NAME πΈ
playback β the IBM x3270 trace file playback tool π (yes, that's literally the whole name, no notes)
π¦ SYNOPSIS π¦
playback [ -b ] [ -w ] [ -p port ] trace_file
β¨ DESCRIPTION β¨
okay so here's the vibe: playback opens a trace file (presumably one that was made by the x3270 Trace Data Stream facility π«) and plays back all the host data inside it, sending it over a socket to whatever processes connect to it. And it also shows you the data that the process sends back in response. two-way gossip, basically. π
It runs in one of two modes β bidirectional and interactive.
In bidirectional mode, which you get with the -b option, playback verifies that the emulator connected to it is sending the correct stream of bytes back in response to the host stream. ngl that's genuinely so useful for automated testing. π
Otherwise, playback is used interactively. The -w command-line option stops it from processing interactive commands until a process connects; if you don't use -w, commands get processed immediately. Keyboard commands control the flow of data from the file to the socket. Those commands are:
sβ send one line of data.rβ send one record of data (so, send data until the TELNET EOR sequence is reached).mβ send data until a mark (a line beginning with$) is encountered in the file.eβ send the rest of the data in the file.tβ send a TELNET DO TIMING MARK sequence.cβ echo the command to stdout as a comment.dβ disconnect the current socket and wait for another connection.qβ exitplayback.
π EXIT STATUS π
0β success. slay. β¨1β set-up failure. π2β run-time failure, like mismatched data. π
π EXAMPLES π
Say you wanted to interactively play back a trace file called /tmp/x3trc.12345. In one window, run:
playback /tmp/x3trc.12345
In another window, start x3270 with the command:
x3270 localhost:4001
playback will announce the connection. π«Ά
After that, the s and r commands will send data from the file to x3270.
Now, to automate a unit test to verify that x3270 produces a known data stream, run:
playback -b /tmp/x3trc.12345
In another window, start x3270 as above. playback will exit with status 0 if the byte stream matches, and status 2 if it does not. no in-between, it's giving decisive. π
π SEE ALSO π
mwah π that's the whole page β this version of the PLAYBACK(1) manual page is dated 30 December 2021, so if you're reading it way later, hey, still iconic. bye bestie!! πβ¨π¦
π¦ where this page comes from
- centos-stream 10: x3270 4.3ga8-8.el10 Β· BSD-3-Clause AND MIT AND Apache-2.0
- fedora 43: x3270 4.4ga6-2.fc43 Β· BSD-3-Clause AND HPND-sell-variant AND MIT AND Apache-2.0
- fedora 44: x3270 4.4ga6-4.fc44 Β· BSD-3-Clause AND HPND-sell-variant AND MIT AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms