Run ldd on your binary to see what shared libraries it is linking to and their location. Then be sure that your script has the correct environment to see all those libraries. <br><br><br><div class="gmail_quote">On Wed, Nov 30, 2011 at 2:18 PM, Jerry Stutte <span dir="ltr"><<a href="mailto:jfstut@charter.net">jfstut@charter.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have a situation (using Cygwin) where I compiled some C code that executes in a terminal just fine.<br>
<br>
the purpose of the code is to gather statistics in windows.<br>
<br>
I can execute these binaries using ssh (example)<br>
<br>
ssh user@host /a-path/my-command(s)<br>
<br>
however using a script to execute the commands (I use this script regularly in a *nix environment)<br>
<br>
I get an error (error while loading shared libraries: ?: cannot open shared object file: no such file or directory)<br>
<br>
the script does run but barfs on running the executable.<br>
<br>
I imagine the bash script may be treated differently in cygwin (referring to environment) when executed via ssh.<br>
<br>
suggestions are appreciated (checked all permissions).<br>
<br>
gerard stutte<br>
<br>
<br>
______________________________<u></u>_________________<br>
Cialug mailing list<br>
<a href="mailto:Cialug@cialug.org" target="_blank">Cialug@cialug.org</a><br>
<a href="http://cialug.org/mailman/listinfo/cialug" target="_blank">http://cialug.org/mailman/<u></u>listinfo/cialug</a><br>
</blockquote></div><br>