Re: passing web authentication to background wget jobs?
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: Thu, 3 Jun 2004 17:33:11 -0000
-----BEGIN PGP SIGNED MESSAGE-----
NotDashEscaped: You need GnuPG to verify this message
In comp.os.linux.misc LRW <email@example.com> suggested:
> I have a daily cron job that runs a script with the following:
> wget -0 - http://www.(myserver URL)/autoemail/automail.php &
> Now, I just applied .htaccess folder authentication on "autoemail". (I
> can't test it until the server restarts late tonight, because
> restarting the Web server in the middle of production is a BAAAD thing
> for us.)
Why do you want to restart apache for a simple change in
httpd.conf? You can reload it via 'apachectl' or perhaps your
init scripts offer something like this, without disturbing anything.
> In any case, I'm anticipating that now when that wget runs, it's going
> to be challenged with a user authentication. Is there a way to set it
> up to automatically get past it?
-- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo firstname.lastname@example.org | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAv2DWAkPEju3Se5QRAkLbAKDKRgqNzPQW4YcmE3MqLp6zsKC5rgCgpci3 IPx1NfOqwh7i8yfSBAXCAwQ= =cota -----END PGP SIGNATURE-----