[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] multiple constant parameters

From: Ángel González
Subject: Re: [Bug-wget] multiple constant parameters
Date: Thu, 05 Jun 2014 01:04:12 +0200
User-agent: Thunderbird

I *think* wget only reads the wgetrc file once. So, provided you are using bash (you are) and run it on a OS with support for reading a fd from a path in /proc (which is also most likely) then you can replace the wgetrc with a script, which presumably can determine if it's safe to decrypt the secret and retrieve the password from secure storage.

 $ cat script.sh
echo http-user=user
echo http-password=$(pwgen 43 1)

And then we can run:
WGETRC=<(./script.sh) wget -d http://www.secretsite.net

which would provide a different password for accesing the site on each run.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]