Re: passing web authentication to background wget jobs?

From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 06/03/04


Date: Thu, 3 Jun 2004 17:33:11 -0000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.misc LRW <deja@celticbear.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?

man wget
/-http-user

-- 
Michael Heiming (GPG-Key ID: 0xEDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFAv2DWAkPEju3Se5QRAkLbAKDKRgqNzPQW4YcmE3MqLp6zsKC5rgCgpci3
IPx1NfOqwh7i8yfSBAXCAwQ=
=cota
-----END PGP SIGNATURE-----


Relevant Pages

  • Re: A kind of flush ?
    ... It is not the whole script that should be exited, but the "sub-"function, ... you keep the microprocessor running at full ... the interrupt mechanism. ... After say 20ms the timeout fires [restarts the process] the next instance ...
    (comp.lang.javascript)
  • Re: RubyĆ¢EURO(tm)s not ready - an indepth essay
    ... | I have read most of the comments in this forum. ... | "In another incident in the same article, the original Rails author ... | restarts a day, or six to seven restarts per thread per day. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (comp.lang.ruby)
  • Re: named
    ... You need GnuPG to verify this message ... >> need help to create script for cron, whitch check every 5 min if named is ... you reboot to get a kernel update running. ... script, not if the daemon is actually running. ...
    (linux.redhat)
  • Re: package building failure irritation
    ... make install ... # Run your script here and wait until it finishes ... # returns to the original shell ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ ...
    (freebsd-hackers)
  • Re: Where to add X startup actions?
    ... David Abrahams wrote the following on 27.08.2006 20:33: ... xhost +local:acpid ... # This script is executed at the end of each multiuser runlevel. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (Ubuntu)