<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ld.so.1: sde2shp: fatal: libsde.so: open failed: No such file or directory in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84599#M4881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;'cron' jobs generally run in a different shell (Bourne or Korn), so they won't run your .cshrc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's generally necessary to explicitly set every variable you might need at the top of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;script (in the appropriate syntax) --&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#!/bin/sh # myCronJob.sh&amp;nbsp; # .. set path variables # SDEHOME=/opt/esri/arc100ora10g64 ORACLE_HOME=/opt/oracle/product/.... PATH=$SDEHOME/bin:$ORACLE_HOME/bin:$PATH LD_LIBRARY_PATH=$SDEHOME/lib:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib export SDEHOME ORACLE_HOME PATH LD_LIBRARY_PATH&amp;nbsp; # .. set connection variables # SDEUSER=foo SDEPASSWORD=bar export SDEUSER SDEPASSWORD&amp;nbsp; ...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 14:41:16 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2012-05-03T14:41:16Z</dc:date>
    <item>
      <title>ld.so.1: sde2shp: fatal: libsde.so: open failed: No such file or directory</title>
      <link>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84598#M4880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running ArcSDE 9.3.1 on Solaris 10 against Oracle 10gR2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a shell file which uses sde2shp fine - it creates the files as expected. When I try to schedule the shell file via crontab I get the error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ld.so.1: sde2shp: fatal: libsde.so: open failed: No such file or directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked that the SDE directories appear before the Oracle directories in the PATH and LD_LIBRARY_PATH and also that the file libsde.so exists in SDEHOME/lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone got any suggestions on how to resolve this please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84598#M4880</guid>
      <dc:creator>JohnKnight</dc:creator>
      <dc:date>2012-05-03T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: ld.so.1: sde2shp: fatal: libsde.so: open failed: No such file or directory</title>
      <link>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84599#M4881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;'cron' jobs generally run in a different shell (Bourne or Korn), so they won't run your .cshrc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's generally necessary to explicitly set every variable you might need at the top of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;script (in the appropriate syntax) --&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#!/bin/sh # myCronJob.sh&amp;nbsp; # .. set path variables # SDEHOME=/opt/esri/arc100ora10g64 ORACLE_HOME=/opt/oracle/product/.... PATH=$SDEHOME/bin:$ORACLE_HOME/bin:$PATH LD_LIBRARY_PATH=$SDEHOME/lib:$ORACLE_HOME/lib:/usr/lib:/usr/local/lib export SDEHOME ORACLE_HOME PATH LD_LIBRARY_PATH&amp;nbsp; # .. set connection variables # SDEUSER=foo SDEPASSWORD=bar export SDEUSER SDEPASSWORD&amp;nbsp; ...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 14:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84599#M4881</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-05-03T14:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: ld.so.1: sde2shp: fatal: libsde.so: open failed: No such file or directory</title>
      <link>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84600#M4882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You were right, by including the settings in the shell file the process now works correctly under cron.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your speedy reply and help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 15:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/ld-so-1-sde2shp-fatal-libsde-so-open-failed-no/m-p/84600#M4882</guid>
      <dc:creator>JohnKnight</dc:creator>
      <dc:date>2012-05-03T15:44:03Z</dc:date>
    </item>
  </channel>
</rss>

