[Top][All Lists]

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

Re: [Bug-wget] multiple constant parameters

From: Giuseppe Scrivano
Subject: Re: [Bug-wget] multiple constant parameters
Date: Wed, 04 Jun 2014 13:07:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Szépe Viktor <address@hidden> 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 not easy to change
> (add/remove new parameters) these every time.

You can use -e to set on the  command line what you can set in the .wgetrc file.

But I am not sure I understand your problem. You want to use wget from a
shell script but find unsafe to write down your secret key?
Be careful that unless configured properly, the command line is visible
to other users anyway.


reply via email to

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