Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Calling a binary from a different platform

by Mr. Muskrat (Canon)
on Oct 28, 2014 at 17:21 UTC ( [id://1105345]=note: print w/replies, xml ) Need Help??


in reply to Calling a binary from a different platform

This is not really a perl question and more of an OS question but I'll give it go. On Linux, you can use the file command to identify file contents. When used on a binary executable, it will tell you the architecture of an executable.

$ file /bin/arch
/bin/arch: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
$ file /bin/unicode_start
/bin/unicode_start: Bourne shell script text executable
$ file /bin/view
/bin/view: symbolic link to `vi'

I don't have access to a Solaris box but I know that the file command does exist there so that might be a good starting point.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1105345]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-24 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found