ftp exitcode
Hans-Joachim Hoetger
Hans-Joachim.Hoetger at telefonica.de
Fri May 14 12:40:02 CEST 2004
On Thu, May 13, 2004 at 06:10:11PM +0200, Jan-Benedict Glaw wrote:
> > put "| ${ZIP} -c -9 ${FTPFILE}" ${FTPREMOTENAME}
> > quit
> > +here
>
> RET=$?
> if [ $RET -eq 0 ];
> echo "Arbeit is getan, lass und nen Bier heben"
> else
> echo "Leute, trinkt schon mal $RET Bier für mich mit, ich muß nochmal an den Schreibtisch..."
> fi
>
> return $RET
> > }
>
Moin,
that sucks!
rout at karoshi [/usr/local/fw-1/scripts] >>ftp 195.71.100.138 <<EOT
? quit
? EOT
ftp: connect: Connection timed out
rout at karoshi [/usr/local/fw-1/scripts] >>echo $?
0
rout at karoshi [/usr/local/fw-1/scripts] >>
Grüße
--
Hans-Joachim Hoetger voice: +49-5246-80-1555
Telefónica Deutschland GmbH fax: +49-5246-80-2555
never change a running system
change a never running system
run a never changing system
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20040514/a5e87afd/attachment.sig>
More information about the Linux
mailing list