Hi All i had writena script to identify 0kb file push the files to rejected folder and data contact files need to push to web server folder but struck in connection.

Below code to idenfity the 0kb files.

#!/bin/bash
for j in /root/citi/in/DP*
do
if [ -s $j ]
then
echo " NON ZERO KB FILE FOUND "
else
echo " PLEASE WAIT 0KB FILE ARE MOVING"
mv $j /root/in/out 2> dev/null.
sleep 3
fi