Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILESIZE=$(stat -c%s as.log)
- if [" $FILESIZE" -gt "150000" ]; then
- zip -r "as.log-$(date +"%Y-%m-%d").zip" as.log
- here sendmail kaanmrzl@gmail.com < as.log.zip
- here truncate -s 0 as.log
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement