Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOGS1=$(grep -E -i 'err|warn' /opt/backup/exports.log /opt/backup/imports.log && grep "tar:" /opt/backup/h2_backups.log /opt/backup/st_backups.log)
- if [ -n "$LOGS1" ] ]; then
- COLOUR="yellow"
- MESSAGE="Logs contain warnings. Backups may be incomplete. Invetigate these warnings:n$LOGS"
- $ Q=$(grep text file 2>&1)
- $ echo $Q
- grep: file: No such file or directory
- command >file 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement