Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement verbose / quite mode for scripts #88

Open
oehrlis opened this issue Aug 26, 2020 · 0 comments
Open

Implement verbose / quite mode for scripts #88

oehrlis opened this issue Aug 26, 2020 · 0 comments

Comments

@oehrlis
Copy link
Owner

oehrlis commented Aug 26, 2020

start using verbose / quite mode plus logging similar to

readonly LOGFILE="${LOG_BASE}/$(basename ${SCRIPT_NAME} .sh).log"
touch ${LOGFILE} 2>/dev/null
exec 1> >(tee -a "$LOGFILE")
exec 2>&1               # Redirect standard error to standard out 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant