We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Use Case: export logger_info logger_export; scp -p file host:/tmp/file 1> >(logger_info) 2> >(logger_error)
export logger_info logger_export; scp -p file host:/tmp/file 1> >(logger_info) 2> >(logger_error)
Situation now: even on success of scp , when nothing is written to logger_error, an error-log entry is written.
Desired: on success of scp , when nothing is written to logger_error, write no error-log entry.
Code-Change:
log() { ... # if no message was passed, read it from STDIN [ $# -ne 0 ] && l_msg="$@" || l_msg=cat if [ "" = "${l_msg}" ]; then return; fi
cat
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Use Case:
export logger_info logger_export; scp -p file host:/tmp/file 1> >(logger_info) 2> >(logger_error)
Situation now: even on success of scp , when nothing is written to logger_error, an error-log entry is written.
Desired: on success of scp , when nothing is written to logger_error, write no error-log entry.
Code-Change:
The text was updated successfully, but these errors were encountered: