EnglishFrenchSpanish

Ad


OnWorks favicon

cleop - Online in the Cloud

Run cleop in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command cleop that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


cleo - Play back shell commands for live demonstrations

SYNOPSIS


cleo COMMAND_FILE

DESCRIPTION


"cleo" is a utility for playing back pre-recorded shell commands in a live demonstration.
"cleo" displays the commands as if you had actually typed them and then executes them
interactively.

There is probably an easy way to do this with "expect" or a similar tool. But I couldn't
figure it out, so I built this. Your mileage may vary.

PLAYBACK


"cleo" always pauses and waits for a keypress before displaying a command and before
executing it. Pressing any key besides those listed below will advance the playback:

Key Action
------------------------------------------------------------------
s skip the current command
r redo the current command
p redo the previous command
q quit playback

COMMANDS


"cleo" reads commands from a file. Each line is treated as one command. Blank lines and
those starting with "#" will be ignored. The commands themselves can be anything that you
would type into an interactive shell. You can also add a few special tokens that "cleo"
recognizes:

"!!!"
Commands starting with "!!!" (three exclamation points) are not displayed and will be
executed immediately. This is useful for running setup commands at the beginning of
your demonstration.

"%%%"
Within a command, "%%%" (three percent signs) will cause "cleo" to pause and wait for
a keypress before displaying the rest of the command. This is useful if you want to
stop in the middle of a command to give some explanation.

Otherwise, "cleo" displays and executes the commands verbatim. Note that some interactive
commands like "vim" are picky about STDOUT and STDIN. To make them work properly with
"cleo", you may need to force them to attach to the terminal like this:

(exec < /dev/tty vim)

EXAMPLE


I use this for giving demonstrations of pinto, such as the one seen at
<https://www.youtube.com/watch?v=H-JkFXm8Xgk> (the live demonstration part starts around
10:47).

The command file that I use for that presentation is included inside this distribution at
examples/pinto.demo. This file is for illustration only, so don't expect it to actually
work for you.

LIMITATIONS


"cleo" only works on Unix-like platforms. It may work on Windows if you use Cygwin.
Personally, I have only used "cleo" on Mac OS X.

TODO


Jump to arbitrary command number
Support backspacing in recorded command
Support multi-line recorded commands
Write unit tests

Use cleop online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    facetracknoir
    facetracknoir
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 2
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 3
    Freeciv
    Freeciv
    Freeciv is a free turn-based
    multiplayer strategy game, in which each
    player becomes the leader of a
    civilization, fighting to obtain the
    ultimate goal: to bec...
    Download Freeciv
  • 4
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • 5
    LMS-YouTube
    LMS-YouTube
    Play YouTube video on LMS (porting of
    Triode's to YouTbe API v3) This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/lms-y...
    Download LMS-YouTube
  • 6
    Windows Presentation Foundation
    Windows Presentation Foundation
    Windows Presentation Foundation (WPF)
    is a UI framework for building Windows
    desktop applications. WPF supports a
    broad set of application development
    features...
    Download Windows Presentation Foundation
  • More »

Linux commands

Ad