(deleted)
Edit History
I do all these by accessing my custom made AdminImportCombinations tab. That's why I was telling that I only need to login and "click" a link. In my case, the link is: [ http://www.myshop.co...ortCombinations ] This link will made everything for me. But I'm stuck exactly at the login phase. So my question: should I put the two lines each one in a cron command, or both of them in a .sh file?
Just went thru a 1.4.5 release and realised my script does not work has is (sorry for that and the fact I don't have the time to investigate changes)
Now based on the fact you have made your own script, why do you need to enter the login? by click?
Why not login on your own - in your custom panel-ish?
Have a look on <admin>/login.php to forge the employee cookie, then the token if needed
$token = Tools::getAdminToken($tab.intval(Tab::getIdFromClassName($tab)).intval($cookie->id_employee)); to forge the panel token
I would even create an employee dedicated to this task for which you only pass a hash of the password as a parameter. This way even if somebody snif the hash it can only be used for this panel not to get access thru regular login.