"Kevin Mc" <reply DeleteThis @to.group> wrote in message
news:Y1fUb.20231$HR.4028@newssvr27.news.prodigy.com...
> I hope someone in this group can help. I am familiar with running cron
> jobs, but have run into a particular syntax that I cannot get around. I
> need to run a file on my server a couple of times a day. The file is a
PHP
> file, but it requires several arguments after the file name ....
> file.php?a=1&b=2&c=3. First I tried simply entering this string into the
> crontab, but got nothing (like this: php
> /home/mySite/.../file.php?a=1&b=2&c=3 [where '...' is me truncating the
> address for this post]).
>
> Then I put this command into an .sh file like this:
>
> #!/bin/bash
> php
>
/home/mySite/public_html/bin/export.php?db=all&db_list=&comments=none&tables
> =on&data=on
>
> After which, I entered this into my Cron Manager like this: sh
> /home/mySite/.../file.sh <-name of my sh file. Still, this job will not
> run.
>
> Any ideas on how to run a cron job like the one I am working with here?
>
> Much thanks!
> Kevin Mc.
>
Why not just call a plain php file that has in it an include to the one with
variables?
cron will run the plain file, say main.php and php will take care of the
rest in the normal way<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Cron Jobs -> Config Question