Hi,
I have a script : list_file_delete.php with security check
I want to launch this script everyday by cron, so I have created a new file script : cron_delete_file.php
This is the content of this script :
sc_apl_status('list_file_delete', 'on');
sc_redir('list_file_delete');
sc_reset_apl_status();
Do you have an idea how run this script from cron ?
I tested with curl, php, wget.
This is content of HTML page execute from cron :
<form name="Fredir" method="post"
target="_self">
<input type="hidden" name="nmgp_parms" value=""/>
<input type="hidden" name="nmgp_url_saida" value="/scriptcase/app/anva/cron_delete_file/">
<input type="hidden" name="script_case_init" value="4615"/>
</form>
<SCRIPT language="javascript">
window.onload = function(){
submit_Fredir();
};
function submit_Fredir()
{
document.Fredir.target = "_self";
document.Fredir.action = "/scriptcase/app/anva/list_file_delete/";
document.Fredir.submit();
}
</SCRIPT>
When I execute cron by : curl http://192.168.55.100/cron_delete_file/cron_delete_file.php, it’s seem that redirect is not execute.
Do you have an another strategy ?
Thanks