[FX.php List] Crontab to run php script?
Dale Bengston
dbengston at tds.net
Fri Jun 4 20:51:40 MDT 2010
Hi Jonathan,
The easiest way to trigger a regular, timed script on OS X Server is with... iCal. Any event may be configured to run a script or application. The location of the script is not important except for web access. Scripts run by the web user need to be in the web folder (/Library/WebServer/Documents/) because that's the extend of the web user's world. It's a security thing.
Running a PHP script from Terminal gives you all the access rights of the current logged-in user.
Hope this helps,
Dale
On Jun 4, 2010, at 9:42 PM, Jonathan Schwartz wrote:
> Hi Folks,
>
> I need to create a Crontab in OS X Server to run a php script. The script performs sales order post processing instead of doing it during order entry. This allows sales reps to be more efficient.
>
> The question is whether I can I leave the script, which calls other scripts, in the existing web folder. On OS X Server, that is /Library/WebSerber/Documents/TheWebFolder.
>
> Moving along, I'm struggling with how to create the crontab to call the script.
>
> Any experienced crontab jockeys out there?
>
> Jonathan
> --
> Jonathan Schwartz
> Exit 445 Group
> jonathan at exit445.com
> http://www.exit445.com
> 415-370-5011
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list