[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [seul-edu] AppDex problems.



Thanks! Relative path problems....yup.


At 03:46 PM 1/12/02 +0300, you wrote:
>Maybe, you are using relative paths in your scripts
>and when run by hand directories are right, but
>not when run by cron?
>
>>From what you described, it's most probable cause.
>
>- make sure you cd to right dir before doing anything else.
>
>On Sat, 12 Jan 2002, Les Richardson wrote:
>
>>I've got a problem, perhaps someone can help with.
>>
>>When a new application is added to the database, the script writes a email
>>message to a local file. Another script will read this message file and
>>email it to the listserv. This mailing script is run hourly by a cron
process.
>>
>>However, it doesn't work.
>>
>>The script will work perfectly when run by hand. (as root or as webuser)
>>
>>I have:
>>1) Increased the logging level on cron and it _is_ running the script.
>>2) directory permissions are 777 in which the datafile and mailing script
>>exist.
>>3) file permissions are 775 for the script and 644 for the data file.
>>
>>All files are owned by webuser, webgroup which is how apache runs. (which
>>creates data file in first place.)
>>
>>Any ideas?
>>
>>Les Richardson
>>
>>
>>
>>
>>
>
>Sincerely yours, Roman Suzi
>-- 
>_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd@onego.ru _/
>_/ Friday, January 11, 2002 _/ Powered by Linux RedHat 6.2 _/
>_/ "For people who like peace and quiet: a phoneless cord." _/
>
>