diff options
Diffstat (limited to 'newfile.sh')
-rwxr-xr-x | newfile.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,12 +2,13 @@ DIR=$1 FILENAME=$2 +SIZE=$3 if [ -z "$FILENAME" ]; then exit 1; fi -echo "new file detected $DIR/$FILENAME" >> /tmp/newfile.log +echo "new file of size $SIZE detected: $DIR/$FILENAME" >> /tmp/newfile.log sleep 5 rm -f $DIR/$FILENAME >> /tmp/newfile.log 2>&1 |