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.



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 --

-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                      http://www.ustsvs.com/
email@hidden                                http://www.iwiring.net/
1-714-363-1174

"The wise man doesn't give the right answers, he poses the right
questions." -- Claude Levi-Strauss

------------------------------------------------------------------------

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
_______________________________________________
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.