Ftp_putin () { cd ${Work_dir} ftp -i -n ${Ftp_writeHost} << EOF user ${Ftp_writeUserName} ${Ftp_writePassword} cd ${Ftp_writeBasePath} put ${Input_file} EOF }
Ftp_monitor () { cd ${Work_dir} ftp -i -n ${Ftp_readHost} << EOF user ${Ftp_readUserName} ${Ftp_readPassword} cd ${Ftp_readBasePath} get ${Input_file} del ${Input_file} EOF
if [[ -e ${Input_file} ]]; then gerp ${Inner_info} ${Input_file} if [[ $? != 0 ]]; then Alert 2 fi else Alert 1 fi }