From owner-freebsd-questions Sat May 1 20: 8: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from revolution.3-cities.com (revolution.3-cities.com [204.203.224.155]) by hub.freebsd.org (Postfix) with ESMTP id C5F7D15182 for ; Sat, 1 May 1999 20:07:58 -0700 (PDT) (envelope-from kstewart@3-cities.com) Received: from 3-cities.com (kenn2198.bossig.com [208.26.242.198]) by revolution.3-cities.com (8.8.5/8.7.3) with ESMTP id UAA21999; Sat, 1 May 1999 20:07:52 -0700 (PDT) Message-ID: <372BC196.689BC341@3-cities.com> Date: Sat, 01 May 1999 20:08:06 -0700 From: Kent Stewart Organization: Columbia Basin Virtual Community Project X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Gary Kline Cc: Ben Smithurst , questions@FreeBSD.ORG Subject: Re: printjob.c References: <199905020100.SAA14746@athena.tera.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I hope your example isn't complete because the "else" and "fi" are missing and that is supposed to be an exit not the editor ex. Kent Gary Kline wrote: > > According to Ben Smithurst: > > Gary Kline wrote: > > > > > Sure. This would have been pretty common, both by new users > > > and by the more seasoned user. > > > > > > Doug White, if you have any time, maybe you can think of > > > something obscure... Why execv() fails in printjob.c, > > > andor why lpr doesn't queue anything. > > > > One thing you may or may not have checked: if it's a script of some sort, > > is the #! line correct? > > > > I find the #! line 3 spaces down in hpif and thought, > Wow! But I fixed that and retried "lpr hpif" and no-joy. > > Here is the script that I swiped from the Search page. > The script may be bad; No more "cannot execv %s" errors; > now the error is from lp. > > May 1 17:46:22 tao su: kline to root on /dev/ttyp1 > May 1 17:46:51 tao lpd[15275]: lp: job could not be printed (cfA400tao.thought.org) > > #!/bin/sh > # > # ifhp - Print Ghostscript-simulated PostScript on a Canon BJC-4100 > # Installed in /usr/local/libexec/hpif > # > # Treat LF as CR+LF: > # > printf "\033&k2G" || exit 2 > # > # Read first two characters of the file > # > read first_line > first_two_chars=`expr "$first_line" : '\(..\)'` > if [ "$first_two_chars" = "%!" ]; then > # > # It is PostScript; use Ghostscript to scan-convert and print it > # > /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=epsonc > -sOutputFile=- - \ > && ex > > So: new errs. Any idea what's causing this complaint from > ``lp''? > > hmmm. > > thanks! > > gary > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Kent Stewart Richland, WA mailto:kstewart@3-cities.com http://www.3-cities.com/~kstewart/index.html Hunting Archibald Stewart, b 1802 in Ballymena, Antrim Co., NIR http://www.3-cities.com/~kstewart/genealogy/archibald_stewart.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message