perl -le "while(1) {print \"USB stick inserted\" if -d 'E:/';sleep 2}"