*BSD News Article 60727


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.hawaii.edu!ames!usenet.kornet.nm.kr!ns.etri.re.kr!news.kreonet.re.kr!usenet.seri.re.kr!news.cais.net!ringer.cs.utsa.edu!swrinde!gatech!news.mathworks.com!tank.news.pipex.net!pipex!blackbush.xlink.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HP 560C Printer setup problem - Handbook
Date: 27 Jan 1996 21:47:08 GMT
Organization: Private BSD site, Dresden
Lines: 25
Message-ID: <4ee6gs$np9@uriah.heep.sax.de>
References: <25JAN199612172107@jane.uh.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

ttm58327@jane.uh.edu (Man, Tony T) writes:

> the message "lpd[267] cannot execv /usr/local/libexec/if-simple"
> I tested the if-simple script and it echoed everything I typed in by hand.
> What is the problem?

I assume /usr/local/libexec/if-simple is not executable via execve().
If you read the man page for execve(2), you'll find that executables
are either one of the supported binaries, or ``interpreted files''
which _must_ start with

#!/path/to/some/interpreter

where the path to some interpreter is most likely /bin/sh in your case.

The shell is more forgiving here: once a script marked executable
fails to be exexve()ed, it feeds the script into a forked copy of
itself (Bourne shell), or into a separate instance of /bin/sh (csh).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)