Archive.sh problem

i added a cron job

5 */6 * * * /bin/sh /home/www/misc/cron/archive.sh > /dev/null

after i added this cron job, the piwik always NOT display data, it shows “No data for this table.”
[attachment=1001:before.png]

i must run archive.sh on command line, and the piwik will show data in ctronl panel.
[attachment=1011:after.png]

why ?

how can i fix it?

*/6 is non-standard

Also, 5 */6 - would schedule this for: 00:05, 06:05, 12:05, 18:05 – is that what you want?

Try:

5 0,6,12,18 * * *

[quote=vipsoft @ Apr 4 2010, 03:13 PM]*/6 is non-standard

Also, 5 */6 - would schedule this for: 00:05, 06:05, 12:05, 18:05 – is that what you want?

Try:

5 0,6,12,18 * * *[/quote]

sorry, i express incorrectly.

for example:
first, i removed all cron jobs
and then i run archive.sh, now everything is ok.
but a few hours later, or tomorrow, it would show “no data” like the first pic.
so i must run archive.sh again to fix it.
if i did not run archive.sh, it would show “no data” forever.

i tried the command in command line, it is ok, and took almost 1-2 minutes.
but when i add it to cron job , it seems not work fine?

thank you very much.
i will try “5 0,6,12,18 * * *” to test
if still have problem, i will back here

have a good day.

My point is that if your version of cron doesn’t understand the non-standard syntax, it wouldn’t have executed the script at all.

i changed the cron job to 5 0,6,12,18 * * *
it still have same problem
how can i do?