summaryrefslogtreecommitdiff
path: root/newfile.sh
blob: 453b3d658a29ffb68bb1e2c6918bf26358658d94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

DIR=$1
FILENAME=$2

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

echo "new file detected $DIR/$FILENAME" >> /tmp/newfile.log
sleep 5
rm $DIR/$FILENAME >> /tmp/newfile.log 2>&1

exit 0