From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,187bbf9d604d2e7a,start X-Google-Attributes: gidfee84,public From: broeni@my-deja.com Subject: Does ftp define an exit status? Date: 2000/01/03 Message-ID: <84pp74$sjc$1@nnrp1.deja.com>#1/1 X-Deja-AN: 567640952 X-Http-Proxy: 1.1 x34.deja.com:80 (Squid/1.1.22) for client 203.73.106.21 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Jan 03 09:13:14 2000 GMT X-MyDeja-Info: XMYDJUIDbroeni Newsgroups: comp.unix.osf.osf1 X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Does somebody know if ftp does define an exit status or not? I've tried the following: broeni@rtx5../broeni> ftp -nv myserver < user broeni wrong_password > bye > END Connected to 192.168.17.8. 220 M01BS0D5 FTP server (Digital UNIX Version 5.60) ready. 331 Password required for broeni. 530 Login incorrect. Login failed. 221 Goodbye. broeni@rtx5../broeni> echo $? 0 Obviously there was an error, but the exit status of ftp is 0. Another try with an even more obvious error: broeni@rtx5../broeni> ftp -nv not_existent < user broeni wrong_pass > END ftp: Unknown Host not_existent Unknown host Not connected. broeni@rtx5../broeni> echo $? 0 Again the exit status does not indicate the failure of the ftp. Is something wrong with the ftp version I'm using (operating system: OSF1 V4.0 1091 alpha)? How can I reliably detect an error during a ftp session? Many thanks in advance for any hints, Stephan Sent via Deja.com http://www.deja.com/ Before you buy.