This post appeared originally in our sysadvent series and has been moved here following the discontinuation of the sysadvent microsite

Ever wanted to record a log of an interactive console session? Easy, just use the script utility. It’s probably already present on your system, no installation required.

To start recording, run script --timing=script.tim script.log. This spawns a new shell, recording stops when you exit from it.

To replay the log, run scriptreplay script.tim script.log. It is also possible to speed up or slow down the playback speed. For example, in order to play back the recording at half of the original speed, use scriptreplay script.tim script.log 0.5. Ctrl+S pauses the playback, Ctrl+Q resumes.

The nice thing about script is that it records everything that happens on the console, it’s not just a simple log of invoked commands. If you open a text editor like vi in the recorded session, you’ll be able to see exactly how and where you navigate the cursor, exactly how and when text was changed - including any typos that were later corrected, and so on.

For the full documentation, check out the manual pages script(1) and scriptreplay(1).

Tore Anderson

Senior Systems Consultant at Redpill Linpro

Tore works with infrastructure at Redpill Linpro. Joining us more than a decade ago as a trainee, Tore is now responsible for our network architecture and operations.

Time-tracking systems - Timewarrior and ActivityWatch

This is my concluding post in a series of three posts.

  • The first blog post contains my general thoughts on time tracking.
  • The second blog post compares different time-tracking software.
  • When writing this last blog post I’ve been using Timewarrior together with ActivityWatch, Waybar and some home-brewed scripts to track my time as good as I could for a couple of months.

Executive summary

In this blog post I’ll give ... [continue reading]

Time tracking systems - software

Published on May 22, 2025

Time tracking systems - general thoughts

Published on May 13, 2025