--- Pete <[EMAIL PROTECTED]> wrote: > >The detail I was getting at was that there may be some crontabs for your > >login user (pete), some as the webserver user (apache?), and then others > >which are stored in /etc/cron.daily (and similar directories on a Linux > >machine). So cron actions can exist in several locations on the system. > >Once added, the user crontabs are usually stored in the /var/spool/cron > >directory for each user (requires root access to view). > > That appears to be the case. As I log on with my own username, then I > will set up a Cron under my own name, and see how it goes. > > I have difficulties with "ownerships" and "rights", and figuring out > whose is whose. > > -- > Pete Clark
I should mention that the items in /etc/cron.daily (or hourly, weekly, monthly) are scripts or links to scripts which are intended to be run at that time interval. Items are placed in these directories by the root user and the file /etc/crontab controls the scheduling for when each directory is processed (in alphabetical order). Getting back to your individual user's cron jobs, you will have to determine how you will access your PHP program. The methods will depend on which commands are available to you on your server (I'll guess it's a flavor of Linux here as I have been doing). * `lynx URL` or `links URL` command-line web browser -- be sure to use your URL and not a file path. Advantages are that the environmental variables available are the same as a regular browser visiting this page. You can use options to suppress output or collect the text or HTML generated from your script. * `wget URL` is similar to lynx and links above but very different options. * `php filepath/scriptname` runs a PHP script from the command line (if installed, often at /usr/bin/php). Environmental variables are sometimes different. Sometimes more difficult to pass in variables which would normally go in via URL. * #!/usr/bin/php -- first line of an executable text file with PHP code if you have the command-line version of PHP installed. James
