Hey,
I want to make a wget cron job that sends an http request to a server each 15 minutes. However, this HTTP request requires a username and a password. So it would be something like this:
Code:
wget --http-user=USERNAME --http-passwd=PASSWORD blah blah blah
As all of you know, this would end up showing the username and password on
ps.
I've been trying to find out a way on how to bypass this and I read about .wgetrc. My idea is to create a specific username on my box to use the .wgetrc file on his home directory, which will be obviously chmoded to 600, where I can put the username and password.
Now, my question is: when I use wget command, how do I say that I want it to read the user's .wgetrc file? If I had a username and password saved on a .wgetrc file, how would I tell to wget to read them from that file?
Thanks in advance,
Fill