in reply to Calling a binary from a different platform

rgren925:

Usually on a *nix box, you can use the file command to get a bit of information about the file. Often it can tell you enough information to determine whether it's totally foreign to the environment or not.

However, it concerns me that you may be papering over a bigger problem--how are executables for different platforms winding up in your path? If it were me, I'd prefer to tackle that problem, as it smacks of some system administration problem.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Calling a binary from a different platform