PLAYBACK(1)

πŸ“¦
version 4.4ga6 Β· 2 versions
, in centos-stream 10, fedora 43, fedora 44

πŸ’– 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 β€” exit playback.

πŸ’€ 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 πŸ‘‘

x3270(1)


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