summaryrefslogtreecommitdiff
path: root/newfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'newfile.sh')
-rwxr-xr-xnewfile.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/newfile.sh b/newfile.sh
index f4bd2e4..e388c4a 100755
--- a/newfile.sh
+++ b/newfile.sh
@@ -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