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 am using this one of Dan's postings as I did not see my last post go
through to the list indicating that this is fixed for me.

1.  I upgraded from 10.3.5 to 10.4.8.
2.  All my cron tasks were moved to launchd except the hourly one I had
added before the upgrade.
3.  launchd does not have an hourly setup by default and a number of files
would have to be changed to support it. I decided to continue using cron for
this function. I turned off all the daily, weekly, monthly in the crontab
file and just left the hourly.
4.  I found the crontab.applesaved which had the line lines :
SHELL=/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/scripts:/usr/local/scripts
HOME=/var/log

They were not in the crontab file created by the upgrade, so I added them.

5.  As soon as I added the lines the hourly schedule started to work. I
think periodic needed the three environment variable to know were to find
every thing you want to do.

So this issues is closed form me.

Hope this helps others.
 



On 2/18/07 1:24 PM, "Dan Shoop"  wrote:

> At 1:59 AM +0100 2/17/07, 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.
> 
> Because
> 
> a) You wanted the bash shell
> 
> b) you wanted to specify a PATH environment variable (with some funky places)
> 
> c) you wanted to define a HOME environment variable to be someplace specific
> 
> None of the above are necessary but you must realize that processes
> run off cron do not inherit *your* user environment, they aren't you
> logged in.
> 
>> i believe, scripts should be placed in /usr/local
> 
> They can be where ever you source them as being

-- 
John Zigrang
JTZ Engineering, Inc.
310.534.8559 Office
310.502.0963 Cell





 _______________________________________________
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: 
 >Re: 10.4.8 cron / crontab not working after upgrade. (From: Dan Shoop <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.