Cover V11, I02

Article
Listing 1
Listing 2

feb2002.tar

Listing 1 Reference file download

#!/usr/bin/ksh

PATH=/usr/bin; export PATH
SUNSOLVE=sunsolve.sun.com

cd /tmp
rm -f patchdiag.xref >/dev/null 2>&1

ftp -n << EOF
    open ${SUNSOLVE}
    user anonymous my_email@company.com
    binary
    cd /pub/patches
    get patchdiag.xref
    bye
EOF

rm -f /usr/local/patchdiag/patchdiag.xref >/dev/null 2>&1
cp patchdiag.xref /usr/local/patchdiag

while read SYSTEM ACCOUNT PASSWD DIR
do
    ftp -n << EOF2
        open ${SYSTEM}
        user ${ACCOUNT} ${PASSWD}
        binary
        cd ${DIR}
        put patchdiag.xref
        bye
EOF2
    done << SYSEOF
host1 login_id password /usr/local/patchdiag
...
hostX login_id password /opt/sun/patchdiag
SYSEOF