[Cialug] Cygwin scripting and c binary execution
Andy Beatty
apbeatty at gmail.com
Thu Dec 1 08:09:50 CST 2011
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.
On Wed, Nov 30, 2011 at 2:18 PM, Jerry Stutte <jfstut at charter.net> wrote:
> I have a situation (using Cygwin) where I compiled some C code that
> executes in a terminal just fine.
>
> the purpose of the code is to gather statistics in windows.
>
> I can execute these binaries using ssh (example)
>
> ssh user at host /a-path/my-command(s)
>
> however using a script to execute the commands (I use this script
> regularly in a *nix environment)
>
> I get an error (error while loading shared libraries: ?: cannot open
> shared object file: no such file or directory)
>
> the script does run but barfs on running the executable.
>
> I imagine the bash script may be treated differently in cygwin (referring
> to environment) when executed via ssh.
>
> suggestions are appreciated (checked all permissions).
>
> gerard stutte
>
>
> ______________________________**_________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/**listinfo/cialug<http://cialug.org/mailman/listinfo/cialug>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cialug.org/pipermail/cialug/attachments/20111201/7a5adc90/attachment.html>
More information about the Cialug
mailing list