Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for FILENAME in /u01/oracle/domains/custom.log
- while :
- do
- FILESIZE=$(stat -c%s "$FILENAME")
- if [[ $FILESIZE > 1000000 ]] ;then
- echo "$FILENAME is too large = $FILESIZE bytes."
- > $FILENAME
- fi
- sleep 2m
- done
- exit 0
- ./ScriptCustom.sh: line 4: syntax error near unexpected token `while'
- ./ScriptCustom.sh: line 4: `while :'
Add Comment
Please, Sign In to add comment