Unix program on Linux question

Duane Attaway dattaway at dattaway.org
Wed Dec 17 19:00:55 CST 2003


On Wed, 17 Dec 2003, Brian Densmore wrote:

> No clue. It was written and compiled for Unix, not Linux. I don't know
> what libraries or anything. I know it is written and compiled for X86
> architecture. That is all I know. It is a blackbox to me. I don't even
> know at this point which Unix it was compiled for. Could be AIX,
> UnixWare, Sun. I suspect UnixWare, because of the company. I don't have
> the binary at this time. It's more of a research question.

If I remember right, when the file is handed to the kernel, it looks for a
few magic bytes at the beginning of the file to determine if its a script,
who handles it, or what kind of binary it is.  Usually a strings command
on the file for the first line will tell the tale.  Also, this is a crude
way to find out what libraries and functions are called.




More information about the Kclug mailing list