- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find if a binary is 32/64 bit
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:44 AM
04-29-2004 04:44 AM
Is there something else to help me out.
Regards,
Anil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:48 AM
04-29-2004 04:48 AM
Re: Find if a binary is 32/64 bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:53 AM
04-29-2004 04:53 AM
Re: Find if a binary is 32/64 bit
And what it returns for command file "your_binary_file"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:54 AM
04-29-2004 04:54 AM
Re: Find if a binary is 32/64 bit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 05:04 AM
04-29-2004 05:04 AM
SolutionIf file output is "PA RISC 1.1......" then it is definitely 32 bit.
If file output is "PA RISC 2.0......" then I believe it is still a 32-bit executable.
If file output is "ELF-64 executable object file....." then it is definitely a 64-bit executable file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 05:05 AM
04-29-2004 05:05 AM
Re: Find if a binary is 32/64 bit
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=21018
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 06:08 AM
04-29-2004 06:08 AM
Re: Find if a binary is 32/64 bit
# perl -0 -le'@x=split//,substr(<>,0,128);while(@y=map{ord}splice@x,0,16){$y=join"",map{$_<32||$_>0x7f?sprintf"{%x}",$_:chr$_}@y;print +(map{sprintf"%02x ",$_}@y),$y;print"\n"}' your_file
?
Enjoy, Have FUN! H.Merijn [ fearing EBCDIC ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2004 02:45 AM
04-30-2004 02:45 AM