log-script-clideprecated

run and log script

Usage no npm install needed!

<script type="module">
  import logScriptCli from 'https://cdn.skypack.dev/log-script-cli';
</script>

README

Features

  • run and log script
  • store stdout/stderr, execution time and environment variables
  • customizable path

Usage

usage: log-script script [args ...]

How it works

~/.log/stdout/script/date-tag/pid.log           stdout/stderr
~/.log/stdout/script/date-tag/pid.log.env       environment variables
~/.log/stdout/script/date-tag/pid.log.time      execution time

path customizable with log-script-helper

Examples

$ log-script path/to/script.sh
~/.log/stdout/~/git/path/to/script.sh/2018-05-29/23-20-00/62968.log

customize log path with log-script-helper

usage: log-script-helper exit_with script [args ...]
export PATH=~/.bin:$PATH
~/.bin/log-script-helper