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: difference in settings between terminal and crontab



On 24-Nov-05, at 11:02 AM, koen gogne wrote:

What's the difference between running from terminal-window and running from crontab ?

One problem that people often have with crontab jobs is due to the execution PATH being different. You should always use the full path to executables in crontab scripts.
Another difference is the current directory - your app should not assume anything about the current working directory.
Finally, it is unusual for crontab jobs to invoke GUI apps (you mentioned using AppKit). There are difficulties due to the WindowServer process being owned by the currently logged in user.


--
Cameron Hayne
email@hidden


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

This email sent to email@hidden
References: 
 >difference in settings between terminal and crontab (From: "koen gogne" <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.