sec-pentesting-toolkit/useful/watch_dir_change.sh
2014-10-27 08:51:29 -04:00

16 lines
181 B
Bash
Executable File

#!/bin/bash
FILE=~/Desktop/test/ghost
FILE1=~/Desktop/test/cpghost
while [[ true ]]
do
if [ -f $FILE ]
then
cp $FILE $FILE2
echo got it
fi
sleep 2
done