#==================================================================== f_ftp_get_file() # FTP Get Compressed File from Server #==================================================================== # Arg_1 application_server Name of Server # Arg_2 pathename_of_file Pathename of file from Login Root # NOTE: A message is output if arguments are missing { _application_server=${1:?MISSING_application_server} _pathname_of___file=${2:?MISSING_pathename_of__file} _source_file___name=`basename ${_pathename_of__file}`.Z _source_path___name=`dirname ${_pathename_of__file}` _destination___name=eldb_drawing_$$ ftp -nv ${_application_server} <<-EOF user anonymous ${USER:-cape}@`hostname` ascii lcd /tmp cd ${_source_path___name} get ${_source_file___name} \ ${_destination___name}.Z EOF uncompress ${_destination___name} echo ${_destination___name} }