Re: Executable on AIX..

From: sol gongola (sol_at_adldata.com)
Date: 02/08/05


Date: Tue, 08 Feb 2005 13:27:33 -0500

Bill Edison wrote:
>
Correct, an .exe suffix can be used in the file name but unix/linux does not
use the suffix to determine if a file is an executable. It uses the executable
attribute in the directory entry and the magic number in the file.

This is different from microsoft, which will try to execute (and hang) a text
file if it happens to have a .com suffix.

sol

Bill Edison wrote:> I've seen "exe" file extensions here and there used as a self-extracting
> module similar to pkunzip. Quite a few of these can be found at
> http://www/bullfreeware.com
>
> cheers,
> bill
>
> Simon Marchese wrote:
> > Gancy wrote:
> >
> >> Hi All,
> >> I need to figure out only C/C++ executable compiled on on AIX machine
> >> using xlc. I used the 'file' command, but it reutrns following:
> >>
> >> x.exe: executable (RISC System/6000) or object module not
> >> stripped
> >>
> >> 'file' command returns same message even if i use it on object
> >> modules. But i want to be able to specifically determine only a C/C++
> >> executable.
> >> Is there any command or option available to do this
> >>
> >> Thanks & Regards
> >> Ganesh Tiwari
> >
> >
> > Do you want to tell the difference between a C/C++ executeable and a
> > COBOL exe or a Pascal exe? No, because they are all just exes.
> >
> > Do you want to tell the difference between an executeable and any other
> > object? An exe has a "main". Use "nm" or "dump" to determine whether it
> > has or not.
> >
> > BTW "x.exe" is an unusual name. *X executeables do not require a suffix
> > of "exe".



Relevant Pages

  • Re: So I click on this link...
    ... An .exe file is a Windows file. ... It won't run on the Mac OS. ... Giving it the suffix .exe will not prevent it running ... of .exe on the net is not put there to execute on a mac. ...
    (uk.comp.sys.mac)
  • Re: OT: EXE files in HTML?
    ... >>> I would like to be able to put an EXE file at my Web ... > I would hope that it would download temporarily and execute ... some of the photos. ...
    (alt.usage.english)
  • Re: IIS 6.0 CGI
    ... EXE) from the /Scripts virtual directory. ... Configure /Scripts vdir pointing to C:\Scripts with Execute Permissions ... Enable the Web Service Extension ... IIS6 does not allow scripts to execute on the server ...
    (microsoft.public.inetserver.iis)
  • OT: Portable build systems for portable programs was: Re: OT: LCC bug fix poilicy
    ... a ".exe" suffix on executables (and adding one is, ... the ".exe" suffix is required but needn't be specified ... My makefiles collect rules for converting base names into executable ...
    (comp.lang.c)
  • Re: CGI cant spawn process under IIS6
    ... You do not need to change the ACL on CMD.EXE to spawn new processes -- ... and this will launch that EXE without using CMD.EXE to execute ... that I've got to change the permissions on ...
    (microsoft.public.inetserver.iis.security)