Cron jobs are something run at a specifically scheduled time, just once
or repeatedly.  Any cron job can be activated from the Unix/Linux
command line.  

Its inserted into the cron belonging to the user it should run as.  So,
if the job is supposed to run as the user "apache", it is inserted into
the user "apache"s cron.  The easiest way to do that is "crontab -u USER
-e".  And "crontab -u USER -l" will list the cron for that user.

Once in the cron, you are using the standard VI editor (hope you know
how).  Enter the job schedule using the five fields
Minute/Hour/DayOfMonth/Month/DayOfWeek.  A * signifies ALL in any field
entered.  So "01 * 01 * *" would run a job the first minute of every
hour on the first day of every month no matter what day of the week it
is.  Simarily, "*/5 * 1,7,14,21,28 * *" would run a cron job every five
minutes of every hour on the 1st, 7th, 14th, 21st, and 28th days of the
month.

After the schedule in the cron entry, put in the complete command line
entry that runs the job.  Use complete path statements to the command to
be sure it can find it (don't depend on the user's path configuration). 
So, to see a directory list -- don't put in just "ls", use the full
path/command like "/bin/ls".

Save the VI session and you're done.  Be sure to check the /var/log/cron
file to be sure the job is being run after the proper times.


Chuck




On Wed, 2004-01-21 at 19:08, Michelle Cassidy wrote:
> Joel,
> Did you ever figure out how to run the frontpage usage reports with your
> unix server?  The only thing I can find is concerning creating a cron
> job - which I know nothing about.   Please let me know if you have found
> any useful info or links.
>  
> Thanks,
>  
> Michelle
>  
>  
> ----
> 

> _______________________________________________
> Apache-FP mailing list
> [EMAIL PROTECTED]
> http://lists.joshie.com/mailman/listinfo/apache-fp
> 
> Donations:
> http://www.amazon.com/paypage/PT5LZITM9L227 
> 


_______________________________________________
Apache-FP mailing list
[EMAIL PROTECTED]
http://lists.joshie.com/mailman/listinfo/apache-fp

Donations:
http://www.amazon.com/paypage/PT5LZITM9L227 

Reply via email to