Cron Job Issue


#1

I created the cron job to archive logs on Goddady share hosting.I use the following

/web/cgi-bin/php5 -f “$HOME/html/pdseo/misc/cron/archive.php – url=http://partydepotus.com/pdseo/” >/home/content/64/11278464/html/example/piwik-archive.log

Corn Jod does and created the piwik-archive.log. But when i open piwik-archive.log. only following text is wrriten

No input file specified.

Please help why archives are not created.


(Matthieu Aubry) #2

code should be:


/web/cgi-bin/php5 -f "$HOME/html/pdseo/misc/cron/archive.php" -- url=http://partydepotus.com/pdseo/ >/home/content/64/11278464/html/example/piwik-archive.log


#3

Thanks Matt.I Update it to
/web/cgi-bin/php5 -f “$HOME/html/pdseo/misc/cron/archive.php” --url=http://partydepotus.com/pdseo/ >/home/content/64/11278464/html/example/piwik-archive.log
But When run get the following error message

Error in argument 3, char 2: no argument for option -

Any Idea?


(Matthieu Aubry) #4

you didnt’ copy the command properly, there is a space before url


#5

i update it to


/web/cgi-bin/php5 -f "$HOME/html/pdseo/misc/cron/archive.php" -- url=http://partydepotus.com/pdseo/ >/home/content/64/11278464/html/example/piwik-archive.log

But get the following error message
Error in the last Piwik archive.php run:
archive.php expects the argument --url to be set to your Piwik URL, for example: --url=http://example.org/piwik/

I attached the piwik-archive.log file too.
Please advise?


(Matthieu Aubry) #6

sorry ignore my previous message with extra space I was wrong!

can you try:


/web/cgi-bin/php5 ~/html/pdseo/misc/cron/archive.php --url=http://partydepotus.com/pdseo/ >/home/content/64/11278464/html/example/piwik-archive.log

What do you get?


#7

I get the following messge
Error in the last Piwik archive.php run:
archive.php expects the argument --url to be set to your Piwik URL, for example: --url=http://example.org/piwik/


(Matthieu Aubry) #8

Sorry I’m really not sure at this stage what is the problem. maybe you can take a screenshot of the cron page showing the command used?


#9

Please see the attached file. I’ getting the following error

Error in argument 3, char 2: no argument for option -


(Matthieu Aubry) #10

please ask your hosting provider he will be able to resolve the problem easily. it is not a piwik bug. thanks!