obtain executable target platform


 
Thread Tools Search this Thread
Operating Systems Linux obtain executable target platform
# 1  
Old 08-17-2006
obtain executable target platform

Hello all, I am trying to obtain the target platform for which a particular executable has been compiled for. I know it must be possible. It's quite obvious with the .exe files but how do you determine among unix/linux/solaris/sunos/sparc ... Any help will be appreciated. Thanks a lot

Pavlin
# 2  
Old 08-17-2006
Try using file.

A solaris file
Code:
file libnjssl8.so
> libnjssl8.so: ELF 32-bit MSB shared object, SPARC, version 1 (SYSV), not 
> stripped

A linux file
Code:
file libnjssl10.so 
libnjssl10.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

# 3  
Old 08-17-2006
Thanks, that would do just fine
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

After adding new iscsi target port, still the session state of that target port is showing offline

Hi, I wanted to configure new iscsi port on HPUX system, i added the target port address and configured it, once done, went to array side and searched for that host iqn number , but was nt able to find the same, came to host, then when i ran "iscsiutil -pVS" command it gave me below result ... (0 Replies)
Discussion started by: Vinay Kumar D
0 Replies

2. Shell Programming and Scripting

How to obtain info from whois?

Hello, do you know any clever way to get information whether certain domain name become avaialble for registration from bash script? Would be good to check for the availability like every 100miliseconds, i want to catch domain. (1 Reply)
Discussion started by: postcd
1 Replies

3. Shell Programming and Scripting

how to obtain a variable between subroutines

#!/usr/bin/bash sub1 () { for ((i=0;i<10;i++)) do export a=$i; echo "value of a is $a"; sleep 1 done } sub1 & sub2 () { for ((j=0;j<10;j++)) do echo "value of a is $a"; sleep 1 done } (5 Replies)
Discussion started by: Arun_Linux
5 Replies

4. Programming

to obtain users of each group in c

Hello They have ordered to me that makes several small utilities in C/C++ for the servants, among them a small program in C/C++ to generate a file HTML with the groups of that servant and in addition that is the corresponding users of that group. For example of a group: Group: Sys Members:... (2 Replies)
Discussion started by: cybermeis
2 Replies

5. Shell Programming and Scripting

Obtain the remote username?

Hi, I'm new to Unix scripting so I'm hoping someone can help me out. I have trawled the web trying to find an answer to this but have not been able to find out anything. I'm trying to create a script that when supplied with a hostname, will find out information about the remote machine. ... (2 Replies)
Discussion started by: Coleyman
2 Replies

6. UNIX for Dummies Questions & Answers

How to obtain list of users ?

How to obtain list of users found in /home/ and append it to a file. (7 Replies)
Discussion started by: bobby36
7 Replies

7. HP-UX

How can I obtain Hpux?

Hi, How can I obtain Hpux? Thanks (4 Replies)
Discussion started by: arabidi
4 Replies

8. HP-UX

Obtain Memory on HP UNIX

Hi, Does anyone know an easy way of getting the memory usage on a UNIX box? I basically want to find the total % available/in use. Running vmstat gives me 'avm' and 'free' but come in bytes and not percents. Didn't see a switch in sar that just gave me the memory stats similar to Sun's -r... (4 Replies)
Discussion started by: jonesin
4 Replies

9. UNIX for Dummies Questions & Answers

command to obtain lrecl

I'd want to know the command to obtain the lrecl number of a file. (1 Reply)
Discussion started by: leroyj
1 Replies

10. UNIX for Dummies Questions & Answers

Where to obtain FreeBSD?

Anyone help ! From where can I download a free version of FreeBSD ? I am trying to teach myself this OS, have all the documentation needed, but am short the OS itself. If anyone can send me a link, I would be most appreciative ! (3 Replies)
Discussion started by: treborwallace
3 Replies
Login or Register to Ask a Question