Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 10.4.8 cron / crontab not working after upgrade.



I guess I'm clueless here ... why would you need to add anything to your PATH to make a cron job work?  What's incorrect about the following:

my-ibook:~ srussel2$  crontab -e   ## to edit your own crontab file
## add the following line to make an hourly job
0 * * * * /full/path/to/your/script/you/want/to/run/every/hour

Even though launchd is the preferred method going forward, this "old-style" cron syntax still works.  You may want to do a `man 5 crontab`.

Best wishes,
Scott
-- 
Scott Russell

IT Support Engineer, Distributed Support Services,
      Office of Information Technologies, University of Notre Dame
Instructor of Horn, University of Notre Dame and Saint Mary's College
Assistant Horn, South Bend Symphony Orchestra

205 DeBartolo Performing Arts Center
574-631-2698



On Feb 16, 2007, at 7:59 PM, Gregor Alessi wrote:

in 10.4 i had to add


SHELL=/bin/bash

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/scripts:/usr/local/scripts

HOME=/var/log


to my crontabs to get my scripts running.

i believe, scripts should be placed in /usr/local


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden

References: 
 >10.4.8 cron / crontab not working after upgrade. (From: David <email@hidden>)
 >Re: 10.4.8 cron / crontab not working after upgrade. (From: Gregor Alessi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.