[OPEN-ILS-GENERAL] E Mail Notification is not working
Kallinen Pasi
Pasi.Kallinen at pttk.fi
Tue Feb 26 05:29:15 EST 2013
The /home/opensrf/.bashrc is a bash shell script. The crontab (or whatever) where you're trying to execute the .bashrc from is using "sh" as the default shell.
On top of the crontab file, where you define environment variables (like OPENILS, SRF_CORE, etc), put this line:
SHELL=/bin/bash
That should fix the problem.
--
Ystävällisin terveisin
Pasi Kallinen
ICT-asiantuntija
p. 0400-139747
pasi.kallinen at pttk.fi<mailto:kari-pekka.torronen at pttk.fi>
Länsikatu 15
80110 Joensuu
Pohjois-Karjalan Tietotekniikkakeskus Oy - www.pttk.fi<http://www.pttk.fi/>
________________________________
From: open-ils-general-bounces at list.georgialibraries.org [open-ils-general-bounces at list.georgialibraries.org] on behalf of David Busby [david.busby at edoceo.com]
Sent: Monday, February 25, 2013 19:24
To: Evergreen Discussion Group
Subject: Re: [OPEN-ILS-GENERAL] E Mail Notification is not working
This looks to me as if the shell is not being started properly for the opensrf user.
Perhaps there is some environment corruption - although shopt and [[ are shell built-ins.
Can the opensrf user execute other scripts?
What happens when these scripts are executed manually when you login as (or su to) the opensrf user?
/djb
--
David Busby
Edoceo, Inc.
http://edoceo.com/
206.282.6500
On Mon, Feb 25, 2013 at 12:17 AM, Jayaraj JR <jayaraj at iisertvm.ac.in<mailto:jayaraj at iisertvm.ac.in>> wrote:
Hi All,
We try to activate the e mail notification system in Evergreen server. We have created an e mail id. This entry is made in the opensrf.config file.The mail notifiations are not being sent by the system. But receive back the following lines in the newly created e mail id
[X]
/home/opensrf/.bashrc: 13: shopt: not found
/home/opensrf/.bashrc: 21: shopt: not found
/home/opensrf/.bashrc: 99: shopt: not found
/etc/bash_completion: 33: [[: not found
/etc/bash_completion: 39: [[: not found
/etc/bash_completion: 52: Bad substitution
Kindly help us
--
With Best Regards,
Jayaraj J R
LIbrary Information Assistant
IISER Thiruvananthapuram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20130226/61330c2f/attachment.htm>
More information about the Open-ils-general
mailing list