Skip to content

Incorrect options to script command #38

@ppslim

Description

@ppslim

Running Centos 6.6 I am unable to run the download, as invalid options are supplied to the script command.

$ curl showterm.io/showterm > showterm
$ sh showterm
showterm recording. (Exit shell when done.)
script: invalid option -- '/'
usage: script [-a] [-f] [-q] [-t] [file]

This is invoking script as script -q -t/tmp/1MIVy.timing /tmp/PZ4dl.script

$ script --version
script (util-linux-ng 2.17.2)
$ cat system-release
CentOS release 6.6 (Final)

The man page for script here indicates that -t will send timings to STDERR. It will not direct it to a file as the command being issued expects. Using the following solved this.

script $args -q -t "$scriptfile" 2>"$timingfile"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions