unusual problem with cp command

view story

http://www.unix.com – I have made a simple script to zip a file then first copy it to a specific directory using cp command then move it to another directory. Files are getting generated at regular intervals in the dir. /one/two/three/four/. I have entry of my script in cron to run after every 2 min. Code: #!/bin/sh date2=`date +%Y%m%d` hstname=`hostname` LOG_FNAME=Med_Gzip_"$date2"_"$hstname".txt LOG_FILE_PATH="/one/two/three/ZIP_CDR_SCRIPT/$LOG_FNAME" for FNAME in /one/two/three/four/MUM_NG2_*.cdr do gzip "$FNAME" echo "Zipped File name : $FNAME " &g (HowTos)