2019.5.15 • Published 5 years ago

log-exec v2019.5.15

Weekly downloads
-
License
Unlicense
Repository
-
Last release
5 years ago

npm.io

exec args and log stdout and stderr

Installation

$ [sudo] npm i -g log-exec

How it works

stdout and stderr are duplicated in log files:

$LOG_EXEC/<command>/out.log
$LOG_EXEC/<command>/err.log

Config

$ export LOG_EXEC=~/Library/Logs/log-exec # /usr/local/var/log/log-exec by default

Scripts usage

commandusage
log-execusage: log-exec command [args ...]

Examples

$ log-exec script.sh

or use log-exec as interpreter:

script.sh

#!/usr/bin/env log-exec bash
...