Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

mutt not working in cron

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> mutt not working in cron Page: [1]
Login
Message << Older Topic   Newer Topic >>
mutt not working in cron - May 2, '06, 1:05:46 PM   
guenther@wsu.edu

 

Posts: 2
Joined: Apr. 7, '06,
Status: offline
When I use mutt in a bash script, it works fine. But when I run the same script out of cron it gets an error:

/usr/local/bin/mutt: error in loading shared libraries
libncurses.so: cannot open shared object file: No such file or directory

I've updated with pkg_update, and like I said it runs outside of cron but not inside of cron. Here is the path I've set inside of the bash script which is used when run through cron:

PATH=/dev/fs/C/SFU/usr/local/bin:/dev/fs/C/SFU/bin:/dev/fs/C/SFU\opt\gcc.3.3\bin
:/dev/fs/C/SFU/usr/contrib/bin:/dev/fs/C/SFU/usr/X11R6/bin:/dev/fs/C/SFU/usr/loc
al/bin:/dev/fs/C/SFU/usr/contrib/win32/bin:/dev/fs/C/WINDOWS/system32:/dev/fs/C/
SFU/common:/dev/fs/C/SFU/usr/games:/dev/fs/C/usr/local/lib

which shows this way when I do "printenv" when running the
script:

printenv|grep "^PATH="

PATH=C:\SFU\usr\local\bin;C:\SFU\bin;C:\SFUoptgcc.3.3bin;C:\SFU\usr\contrib\bin;
C:\SFU\usr\X11R6\bin;C:\SFU\usr\local\bin;C:\SFU\usr\contrib\win32\bin;C:\WINDOW
S\system32;C:\SFU\common;C:\SFU\usr\games;C:\usr\local\lib

mutt and curses versions:

bash-3.00$ pkg_info |grep mutt
mutt-1.4.2.1-bin Version 1.4.2.1 of mutt for Interix.

bash-3.00$ pkg_info |grep libncurs
libncurses-5.4-bin Version 5.4 of libncurses for Interix 3.5

_____________________________

Dean Guenther
Washington State University
Post #: 1
RE: mutt not working in cron - May 2, '06, 1:32:02 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The environment variable LD_LIBRARY_PATH is set with the startup of the shells
to include "/usr/local/lib". cron doesn't start with this.
That's where the message "error in loading shared libraries" comes in.
It means that a shared library cannot be found for a runtime load.

In your crontab add the env var LD_LIBRARY_PATH with "/usr/local/lib".
X-ref the crontab(5) man page ("man 5 crontab").

(in reply to guenther@wsu.edu)
Post #: 2
RE: mutt not working in cron - May 2, '06, 2:35:08 PM   
guenther@wsu.edu

 

Posts: 2
Joined: Apr. 7, '06,
Status: offline
Yep, that was it. I added the LD_LIBRARY_PATH and it works fine. thanks for the help. -- dean

(in reply to Rodney)
Post #: 3
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> mutt not working in cron Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031