Re: Setting Env



Don Hinton wrote:

# ldconfig -aout -f /etc/ld.so.conf /usr/local/lib/mysql/

will create it for you. man ldconfig for more info...

Well, that created a binary, but when I rebooted...nothing. Same problem :(

----- Original Message ----
From: Jerry McAllister <jerrymc@xxxxxxx>
To: Drew Jenkins <drewjenkinsjr@xxxxxxxxx>
Cc: freebsd-questions@xxxxxxxxxxx
Sent: Tuesday, March 6, 2007 6:31:34 PM
Subject: Re: Setting Env

I don't know for sure what you mean That's not an option. Is this
running from cron or at system bootup or something so there is no login
involved?

Correct

In those cases, it is well documented that your scripts have to be
completely responsible for their environments and paths, etc. So,
set everything within the scipt. Or, if it is something systemwide,
then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if
you let your system have one.

Exactly. But how? I could write a script like I did before:

#!/bin/csh
setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

(chmod +x) but that didn't execute, dunno why. But then how do I call that script? What shell does /etc/rc.conf use?
TIA,
Drew







____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Setting Env
    ... Subject: Setting Env ... I could write a script like I did before: ... The rc.conf method will make it available from the parent. ... Get more on shows you hate to love ...
    (freebsd-questions)
  • mysql50-server not starting correctly on FreeBSD 6.1-PRERELEASE (ldconfig, rcorder)
    ... I installed mysql50-server from an up-to-date ports tree on a new server I'm ... setting up running FreeBSD 6.1. ... ldconfig, but the startup script does not require ldconfig. ...
    (freebsd-stable)
  • Re: Absolute element offsets--exercise in futility
    ... e.g. prototype/ligthbox usage offends me more than its code base. ... I hate them just as much in the end-user role. ... browser, opens 30 HTTP connections on every navigation, etc. ... which is completely incompatible with the script ...
    (comp.lang.javascript)
  • rc.d/ldconfig change
    ... In the embedded system that I'm working on, ... problem with the /etc/rc.d/ldconfig script. ... actually tested for its existance before trying to run ldconfig -aout ... Since the patch is short, ...
    (freebsd-hackers)
  • Re: script to generate names ???
    ... instead of only one in total as when using awk. ... legible using standard shell features can be an indication. ... I hate to say this in shell script forum, but unless the OP has to do ... Don't hate me. ...
    (comp.unix.shell)