-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
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"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels