Hi,
The below script does not cp the file which has special charactor such as ~!@#$%^&*()_+ and stop process on the remaining files. I would like to change the script which able to skip the file or rename it to make it able to copy. Anyone here can help me or give me some advise.
Thank you
#!/bin/csh
set SERVER="emsun8"
set DB_INSERT="/home/production/data/db_insert"
set STDF_OEE="/export/home/db_inputs/a53x_ws"
cd $DB_INSERT
set XFR_LIST = ( `ls *stdf` )
foreach STDF ($XFR_LIST)
if ( -e ${STDF:t} ) then
rcp -p ${STDF:t} ${SERVER}:${STDF_OEE}/wait_${STDF:t}
else
echo " "
echo "$STDF not found."
echo " "
endif
end
exit 0
The below script does not cp the file which has special charactor such as ~!@#$%^&*()_+ and stop process on the remaining files. I would like to change the script which able to skip the file or rename it to make it able to copy. Anyone here can help me or give me some advise.
Thank you
#!/bin/csh
set SERVER="emsun8"
set DB_INSERT="/home/production/data/db_insert"
set STDF_OEE="/export/home/db_inputs/a53x_ws"
cd $DB_INSERT
set XFR_LIST = ( `ls *stdf` )
foreach STDF ($XFR_LIST)
if ( -e ${STDF:t} ) then
rcp -p ${STDF:t} ${SERVER}:${STDF_OEE}/wait_${STDF:t}
else
echo " "
echo "$STDF not found."
echo " "
endif
end
exit 0