The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-06-2008
openspark openspark is offline
Registered User
  
 

Join Date: Aug 2008
Location: New Jersey
Posts: 22
FTP inv tee Query

Hi,

This is part of a ftp script, Can someone please explain what is its functionality or the basic idea behind it and please throw some light on the inv & tee function marked in red.

echo "bye" ) |
ftp -inv | tee -a ${DOWNLOAD_LOG} | awk '{ print $0 } /^5[0-9[0-9].*/ { print "\n\t\t\tFTP session had some errors" }' | awk '/^2[0-9][0-9][- ]You.*/ { print "\n\t\t\t"substr($0,5) }'


Thanks
Sparks