Thanks u every much for the reply,
but, in the script, the statement
ftp -n -i $hostname <<END_SCRIPT >$logname
the variable logname
which is intended to track whether the files is there are not( i suppose) , is not working...no error ... and no output is shown...
could u kindly once again see the script and modify it please