From: broeni@my-deja.com
Subject: Does ftp define an exit status?
Date: 2000/01/03 [thread overview]
Message-ID: <84pp74$sjc$1@nnrp1.deja.com> (raw)
Does somebody know if ftp does define an exit status or not?
I've tried the following:
broeni@rtx5../broeni> ftp -nv myserver <<END
> 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 <<END
> 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.
next reply other threads:[~2000-01-03 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-03 5:00 broeni [this message]
2000-01-15 5:00 ` Does ftp define an exit status? Yong S. Yi
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox