summaryrefslogtreecommitdiff
path: root/etc/rhdropbox/sample/newfile.sh
blob: bef4ea5a93cee2f52a7a9f7ceac6e74b835237a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

DIR=$1
FILENAME=$2
SIZE=$3

if [ -z "$FILENAME" ]; then
  exit 1;
fi

echo "new file of size $SIZE detected: $DIR/$FILENAME" >> /tmp/rhdropbox-sample.log
sleep 5
rm -f $DIR/$FILENAME >> /tmp/rhdropbox-sample.log 2>&1

exit 0