Detected 1 occurrence(s) of ‘[ht|f]tp[s]*:\/\/\w+\:.*\@\w*\.\w*’: 5; fi # 230 Login successful. echo -e "QUITn" >&6; read <&6 if ! echo "$REPLY" | grep -q '^250'; then exec 2>&3 3>&- 6>&-; return 6; fi # 250 Directory successfully changed. exec 2>&3 3>&- 6>&- return 0 } test_ftp_url 'ftp://fz223free:fz223free@ftp.zakupki.gov.ru/out/nsi/nsiProtocol/daily' echo "$?" Source: http://pastebin.com/raw.php?i=yKkfMNMq
↧