Ftp

wat it exactly mean ?

ftp -dn 2>&1 <<EOF

You are missing more lines. Somewhere below the the line you show is another line with EOF.

Post all of those lines. What you have now is the first line of a here document.

the manpage will tell you

2>&1means channel both stderr and stdout <<EOFmeans continue to use what come untill "EOF" as data to the ftp execution.

ip add $...
user/pwd ...
cd /custom_top path
cd $folder_name
lcd $APPLCSF/$APPLOUT
ascii
put $fsg_output_file $fsg_report_name
quit

EOF

This is the complete code but i dont know wat exact -dn means so i hav posted that question

what is lcd $APPLCSF/$APPLOUT