Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. 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)
  2.  
  3. if [ -n "$LOGS1" ] ]; then
  4. COLOUR="yellow"
  5. MESSAGE="Logs contain warnings. Backups may be incomplete. Invetigate these warnings:n$LOGS"
  6.  
  7. $ Q=$(grep text file 2>&1)
  8. $ echo $Q
  9. grep: file: No such file or directory
  10.  
  11. command >file 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement