I have a site map generator script placed in this URL
http://www.mydomain.com/admin/sitemapgen/
However this URL is protected with an username and a password in auth_type basic method.
I need to place a cron to access this URL once a week.
So I've decided to use the curl
command and placed the cron like below.
curl -u username:mypassword http://www.mydomain.com/admin/sitemapgen/
I'm aware that sending a password through http is insecure, however at least I'm trying to hide the password from server/hosting panel users from this curl
command.
1) Are there any methods to hide the password in this curl
command? I read something about placing a plain text file with the password in server and use it with the -k option. However I'm not in to place the password in a plain text file either.
2) Are there any other commands than curl to use for this specific purpose?
curl
command?.I don't know what limitations you have but it's just an another way to hide the password.htpasswd
may be you can try that.