2019.5.15 • Published 6 years ago
log-exec v2019.5.15
exec args and log stdout and stderr
Installation
$ [sudo] npm i -g log-execHow it works
stdout and stderr are duplicated in log files:
$LOG_EXEC/<command>/out.log
$LOG_EXEC/<command>/err.logConfig
$ export LOG_EXEC=~/Library/Logs/log-exec # /usr/local/var/log/log-exec by defaultScripts usage
| command | usage |
|---|---|
log-exec | usage: log-exec command [args ...] |
Examples
$ log-exec script.shor use log-exec as interpreter:
script.sh
#!/usr/bin/env log-exec bash
...2019.5.15
6 years ago