Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 17:33:23 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: fetch is waiting on input on stdin
Message-ID:  <20180120163323.GA5223@c720-r314251>
In-Reply-To: <20180112120937.GA14731@c720-r314251>
References:  <20180112084556.GA13812@c720-r314251> <20180112120937.GA14731@c720-r314251>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


I'm still trying to get around or understand this and maybe it's time to
file a bug PR....

The man page of fetch(3), i.e. the used library for this, explains the
usage of some env vars:

FTP_LOGIN=3Danonymous export FTP_LOGIN
FTP_PASSWORD=3Dguru@sisis.de export FTP_PASSWORD

and if you set this and run:

$ fetch ftp://ftp.muc.de

you will see, that the values of the env vars are used, but only *after*
reading and getting EOF on stdin, i.e. if you run:

$ fetch ftp://ftp.muc.de < /dev/null

it works right away.

How this is supposed to work in automated scripts, like 'make install'?

	matthias

--=20
Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d=
e/  =F0=9F=93=B1 +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlpjb1AACgkQR8z35Hb+
nRFBCA/+L0BNFVJEL+gagMBLFtOXdqPemKvJed/QTrdhJaXrOznH3uV6ZA1T0VbU
imKHmBSDAvFgvq94z55/2ijzw0RzVXDbA2bYptCqhRCfUAEE8FsGIq4bdqvboK/o
zON+HffEiIV09wEByHG3c5RYZO5S4vbtfDrVlTza+Fg/+1y2AjOhg/GoOBGhEjma
rcmwmccqy6Bbs0eEt+tjw/UJbzrmjKaCDq57LuMfdAO/YJmfipcDrE3BxQxY8L+l
Do1xTzBxsN99vIcTS0eReM5C5UDoNauRH/cDXS9aIh3Z7e1yXJoNyZF52j2RfEe+
2Y8cBrZOV1n/JubDIyQebmH1TsuIZRcDQQ2WtFrDu6E5FUZywqvzNn8nftmC/g8n
2kMly3ceiEyJqWTVDKeMHyb/ZLys/NDmsYWK+tm4uKYUYpBIdMbtowGlE3gOl5LJ
waarb2Lm9TUHjD2oZpaB5PqC4oONP8R9e0Y3dKk1iV4wRPGeP4rzKTYQF81dqJBT
d7HjnvzNvg80VxDBzw2vFgcq4Z6YfxoV6kr+RxRoeYvAOWEKRlJ32aXxTscTZsPu
/2LHttciTWpN0Mztpfddtb6YZaqJttp+WiBMYD0FX9BF7j329A/d39OSwf65gHoL
bznEkkNWbYAGTdtRngcGYPP8tx0EgLEudg7TiH94RpDa2lhtLzI=
=2W5O
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180120163323.GA5223>