troubleshooting Question

ftp -i -n -v 2>$ftp_message_file 1>&2 <<EOF

Avatar of bje
bjeFlag for United States of America asked on
Unix OSSystem ProgrammingShell Scripting
7 Comments1 Solution783 ViewsLast Modified:
I am trying to understand a ftp script.  Does this mean that the output of 1 is being directed to 2 and does this mean that if no file is retrieve from the FTP session the script ends with status 16?

ftp -i -n -v 2>$ftp_message_file 1>&2 <<EOF
open $NODE
user $USER $PASS
cd $DIRECTORY
binary
get $FILE $FILE
del $FILE $FILE
bye
EOF
}
#
BASENAME=`basename $0`
if [ $# -ne 2 ]
then
    echo "$BASENAME: usage $BASENAME <file_to_transfer> <directory>"
    echo
    echo "$BASENAME called with invalid number of parameters"
    echo "Processing Abnormally Terminated"
    exit 16
fi


Thanks for the assistance
ASKER CERTIFIED SOLUTION
mnh

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros