help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to detect for wich SO is an .oct file?


From: Benjamin Lindner
Subject: Re: How to detect for wich SO is an .oct file?
Date: Wed, 30 Jun 2010 18:38:08 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Jordi Gutiérrez Hermoso wrote:
On 30 June 2010 09:11, veryhappy <address@hidden> wrote:
I meant from inside Octave but either way that won't work under windows
because it doesn't ship with anything similar to the file command.

system("file foo.oct") under a GNU-based system. Or you could install
file(1) on Windows.

file is part of the minimal msys which is shipped with the octave windows installer.

> [a,o]=system(cstrcat("file ", file_in_loadpath ("fft.oct")))
a = 0
o = path\to\fft.oct: PE executable for MS Windows (DLL) (console) Intel 80386 32-bit

You can also use objdump. A native win32 copy of objdump is also shipped with the windows octave installer (part of gcc/binutils)

> [a,o]=system(cstrcat("objdump -a ", file_in_loadpath ("fft.oct")))
a = 0
o = path\to\fft.oct:     file format pei-i386

benjamin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]