Re: [OPEN-ILS-GENERAL] E Mail Notification is not working

2013-02-26 Thread Kallinen Pasi

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.kalli...@pttk.fimailto:kari-pekka.torro...@pttk.fi
Länsikatu 15
80110  Joensuu

Pohjois-Karjalan Tietotekniikkakeskus Oy - www.pttk.fihttp://www.pttk.fi/

From: open-ils-general-boun...@list.georgialibraries.org 
[open-ils-general-boun...@list.georgialibraries.org] on behalf of David Busby 
[david.bu...@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 
jaya...@iisertvm.ac.inmailto:jaya...@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



Re: [OPEN-ILS-GENERAL] E Mail Notification is not working

2013-02-25 Thread James Fournie
Hi there,

What exactly do you mean by an email id?  This term is vague.

Could you provide the exact command you run to get that output?

James



On Mon, Feb 25, 2013 at 12:17 AM, Jayaraj JR jaya...@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

 /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