while [ "a" = "a" ] do date if test -e /home/sangarma/www/ftp/receive/*.txt then ls /home/sangarma/www/ftp/receive/*.txt mv /home/sangarma/www/ftp/receive/*.txt /home/sangarma/www/program/fncharts/sql/input php processData.php params_TT_server1.php else echo " no input files found" fi sleep 1 done