Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Does ftp define an exit status?
@ 2000-01-03  5:00 broeni
  2000-01-15  5:00 ` Yong S. Yi
  0 siblings, 1 reply; 2+ messages in thread
From: broeni @ 2000-01-03  5:00 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-01-15  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-03  5:00 Does ftp define an exit status? broeni
2000-01-15  5:00 ` Yong S. Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox