RE: load library path

2014-10-06 Thread Joi L. Ellis
It sounds to me like you need to tell the system to update its ldconfig cache.  
Ldconfig --help.
This is something you usually do as root after installing/building new 
libraries.


--
Joi Owen
System Administrator
Pavlov Media, Inc


-Original Message-
From: owner-amanda-us...@amanda.org [mailto:owner-amanda-us...@amanda.org] On 
Behalf Of Heiko Schlittermann
Sent: Tuesday, September 30, 2014 2:55 PM
To: amanda-users@amanda.org
Subject: Re: load library path

Brian Cuttler  (Di 30 Sep 2014 21:38:44 CEST):
> 
> I have a machine on which we replaced the bash shell, which is used by 
> some of the amanda scripts.
> 
> We can add ld_library_path to the .cshrc and run interactive command 
> like # amcheck -t, but the daemon is not finding the library, so we 
> have failures in the nightly run.
> 
> Is there a way to set LD_LIBRARY_PATH so my cron initiated processes 
> and its client jobs will find it?
> 

I do not see the relationship between LD_LIBRARY_PATH and the Bash scripts some 
amanda tools may use…

Some if not all crontabs allow to set environment variables

,-[crontab]
|FOO = bar
|LD_LIBRARY_PATH = /my/lib/
|
|10 2 * * *  amdump DailySet1
`-

At least the crontab(5) of the cron my Linux box allows that. (Vixie
Cron)

Another way should work always
,-[crontab]--
|10 2 * * * LD_LIBRARY_PATH=/my/lib FOO=bar amdump DailySet1
`-

… if your crontab commandline gets parsed and executed by a /bin/sh derivative. 

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
 SCHLITTERMANN.de  internet & unix support -  Heiko 
Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -  gnupg 
encrypted messages are welcome --- key ID: 7CBF764A -  gnupg 
fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A - (gnupg 
fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-



Re: load library path

2014-09-30 Thread Heiko Schlittermann
Brian Cuttler  (Di 30 Sep 2014 21:38:44 CEST):
> 
> I have a machine on which we replaced the bash shell, which is
> used by some of the amanda scripts.
> 
> We can add ld_library_path to the .cshrc and run interactive
> command like # amcheck -t, but the daemon is not finding the
> library, so we have failures in the nightly run.
> 
> Is there a way to set LD_LIBRARY_PATH so my cron initiated processes
> and its client jobs will find it?
> 

I do not see the relationship between LD_LIBRARY_PATH and 
the Bash scripts some amanda tools may use…

Some if not all crontabs allow to set environment variables

,-[crontab]
|FOO = bar
|LD_LIBRARY_PATH = /my/lib/
|
|10 2 * * *  amdump DailySet1
`-

At least the crontab(5) of the cron my Linux box allows that. (Vixie
Cron)

Another way should work always
,-[crontab]--
|10 2 * * * LD_LIBRARY_PATH=/my/lib FOO=bar amdump DailySet1
`-

… if your crontab commandline gets parsed and executed
by a /bin/sh derivative. 

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
-- 
 SCHLITTERMANN.de  internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-


signature.asc
Description: Digital signature