Re: Adding a library to @INC



Tom Allison wrote:
> Wiggins d'Anconia wrote:
>
>> Normally you add to the @INC using the PERL5LIB environment variable. If
>> "oracle>" represents a normal bash shell, then,
>>
>> export PERL5LIB="/path/to/lib/dir"
>>
>> Should do the trick. If it is actually the Oracle client then you might
>> try the same because *theoretically* the subprocess should inherit and
>> respect the same environment.
>>
>
> I'm trying to do the same under a Solaris install at work and for some
> reason that I can't find ( insufficient man pages on box ), I can't get
> my Environment of ~/.profile to be recognized from crontab entries.
>
> Any other options under Solaris that I should try?
>
> I know, I'm on the OT fringe here, maybe someone can give me an answer
> using perl -i ?? :)
>

I ran into the same problem. In general to my knowledge cron for
security reasons uses what is essentially an empty environment subshell,
and won't source any profiles. I know we accomplished the same task, but
don't have specifics. Try adding an export of the environment to the
beginning of your crontab command line, and separate it with semi-colons
as if you were issuing a single command, similar to,

* * * * * export PERL5LIB=/path/to/dir; /run/your/command

See if that works. I know it is possible with Solaris' cron but I know
we had to mess with it for a while. If you have compiled modules with a
C component you may also have to mess with the LD_* environment
variables, we had to.

HTH,

http://danconia.org
.



Relevant Pages

  • Re: Solaris panic with package require Tnm
    ... but is not set in Solaris startup environment. ... This is a piffall for Solaris 10 containers importing read only directories from the global zone and/or nfs mounting of /home. ... Solaris 10 seems to have a problem with tcl 8.4.12/13 rc#.d-Scipts and package require ... The one line script ...
    (comp.lang.tcl)
  • Solaris Sys Admin Opportunity
    ... Company in Des Moines Iowa needs a Unix Systems Administrator (Solaris) ... This is a full time staff position so no sub-contractors or third ... -Provide operational support for the SAN environment. ...
    (comp.unix.solaris)
  • Re: Hiding software in Solaris 10
    ... When installing a new "environmental friendly" firewall/webserver/fileserver for home use, I only had to install three tools thusfar one the clean Solaris installation. ... But for everyday use in that kind of environment, my experience is that they do not help and can only cause confusion. ... Now if the next upgrade of solaris appended /usr/sfw/bin et al to PATH, those users would suddenly start finding different tools and it would break the compatibility promise. ...
    (comp.unix.solaris)
  • Re: IEBCOPY Unloaded dataset to PC and back again...not successful
    ... So you're a Windows partisan. ... If Solaris can run the WorkStation Agent, and if it cannot run EXE's, then I guess the extension doesn't have to be EXE. ... the WSA would obviously need to be programmed to run in that environment. ...
    (bit.listserv.ibm-main)
  • Re: C compiler default output file name... configure: error: C compiler cannot create executables Se
    ... you're fscking up the environment of all your users. ... our users don't change their home .profile. ... Solaris is never being used as user operating system on desktops here. ...
    (comp.unix.solaris)