l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Feb 26 12:17

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Binary problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Binary problems

Thanks, Jeff (& Pete)

* Jeff Newmiller (jdnewmil@dcn.davis.ca.us) wrote:
> On Thu, 26 Feb 2004, Doctorcam wrote:
> > I have downloaded a commercial fax program (free version, for
> > evaluation).  It is in binary (i.e. *.bin).  I have permissions set to
> > execute (100755).  
> > 
> > It will not run, even as "sh primafax_l.bin".
> why would giving a binary executable to bash as an argument improve its
> chances of running?
Because with strace primafax_l.bin, or with primafax_l.bin alone, I
get "command not found".  I wasn't so much trying to get it running as
trying to see why it wouldn't run.  Any port in a storm.

> > 
> > strace gives me the following (in part - hope the wrapping does not confuse):
> > 
> > open("primafax_l.bin", O_RDONLY|O_LARGEFILE) = 4
> > ioctl(4, TCGETS, 0xbffff79c)            = -1 ENOTTY (Inappropriate ioctl for device)
> > _llseek(4, 0, [0], SEEK_CUR)            = 0
> > read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\260\200"..., 80) = 80
> > write(2, "primafax_l.bin: primafax_l.bin: "..., 59primafax_l.bin: primafax_l.bin: cannot execute binary file
> > ) = 59
> > exit_group(126)
> You are stracing bash... which is simply telling you it cannot run the
> program.  You might want to confirm that it is executable with the
> "file" command.  If it is executable, strace the file itself rather thsn
> bash.

Pete also suggested this.  I did run file, which says it is an ELF
(and I have support compiled into the kernel), thus:

ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically
linked, stripped 

What else would you need to know?



Cam Ellison
In lovely Roberts Creek
cam (at) ellisonet (dot) ca
H: 604-885-2897
C: 604-802-7928
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.