Szépe Viktor <[email protected]> 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. Regards, Giuseppe
