On Thursday 05 June 2014 01:04:12 Ángel González wrote:
$ cat script.sh
#!/bin/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
Szépe Viktor vik...@szepe.net writes:
Good morning!
I'd like to use multiple constant parameters like
wget -U $UA --header=Secret-Key: ${HC_SECRETKEY} etc.
Is there a way to set defaults WITHOUT a wgetrc file?
I resist to put a secret key ibto a file.
I use wget a lot in a shell script.
It is generated by pwgen or md5sum.
https://gist.github.com/szepeviktor/0f555ce14e399270fd15#file-hosting-check-sh-L34
Then it gets into the .htaccess file
Then the .htaccess file gets uploaded by FTP
Then comes wget.
Idézem/Quoting Giuseppe Scrivano gscriv...@gnu.org:
Szépe Viktor
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
Oh! Thank you very much for the fd!
HTTP_PW=$(pwgen 43 1)
wgetrc() {
echo http-user=user
echo http-password=$HTTP_PW
}
WGETRC=(wgetrc) wget -d http://www.secretsite.net
Idézem/Quoting Ángel González keis...@gmail.com:
I *think* wget only reads the wgetrc file once. So, provided you are
Good morning!
I'd like to use multiple constant parameters like
wget -U $UA --header=Secret-Key: ${HC_SECRETKEY} etc.
Is there a way to set defaults WITHOUT a wgetrc file?
I resist to put a secret key ibto a file.
I use wget a lot in a shell script. It is not easy to change
(add/remove new