I am having trouble setting up a cron job using the command line.
I have a website which must run a once off Cron Job at a time designated by the users input.
******************************************************
// $expirydatetime is a timestamp;
$min = date("i",$expirydatetime);
$hour = date("H",$expirydatetime);
$day = date("j",$expirydatetime);
$month = date("n",$expirydatetime);
$dow = date("N",$expirydatetime);
$commandline_expression = $min." ".$hour." ".$day." ".$month." ".$dow." /var/echo "<br />".$commandline_expression."<br />";
//exec($commandline_expression);
******************************************************
Unfortunately I cannot get the command line expression to work in the command line when logged in under Root.
I get the following response when pasted into the SSH command line.
******************************************************
-bash: 06: command not found
******************************************************
Please help, any assistance is greatly appreciated.
I have a website which must run a once off Cron Job at a time designated by the users input.
******************************************************
// $expirydatetime is a timestamp;
$min = date("i",$expirydatetime);
$hour = date("H",$expirydatetime);
$day = date("j",$expirydatetime);
$month = date("n",$expirydatetime);
$dow = date("N",$expirydatetime);
$commandline_expression = $min." ".$hour." ".$day." ".$month." ".$dow." /var/echo "<br />".$commandline_expression."<br />";
//exec($commandline_expression);
******************************************************
Unfortunately I cannot get the command line expression to work in the command line when logged in under Root.
I get the following response when pasted into the SSH command line.
******************************************************
-bash: 06: command not found
******************************************************
Please help, any assistance is greatly appreciated.