From owner-freebsd-questions Sat Feb 23 21:18: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 92AAD37B402 for ; Sat, 23 Feb 2002 21:17:55 -0800 (PST) Received: from shumai.marcuscom.com (marcus@shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id g1O5GU882907; Sun, 24 Feb 2002 00:16:31 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: Linux shell scripts From: Joe Clarke To: Jeff Jeter Cc: Stuart Tanner , FreeBSD User Questions List In-Reply-To: References: <1014513894.57377.130.camel@osiris.sigterm.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 24 Feb 2002 00:18:14 -0500 Message-Id: <1014527895.6683.24.camel@shumai.marcuscom.com> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 2002-02-23 at 21:20, Jeff Jeter wrote: > Thanks, installing bash fixed one. > The other i referred to in an earlier post regardint turboprint. It is > generated by another script which works fine. attached is the generator > script. > > Here is the output: I don't really know a lot about this script, but.... > > OUTPUT: > bsd# turboprint -Plp testpage-a4.ps output.prn > turboprint - executing tpfilter manually > printer name: lp > spool directory: turbo2 > *** calling tpfilter now *** > head: illegal line count -- 1c I think changing the head call to: head -c 1 Will fix this error. > eval: 1: Syntax error: "(" unexpected Make sure you're using this script with the bash2 port. You'll probably need bash 2.04 or later to run this script successfully. > *** tpfilter finished *** > the output file may be copied to the printer now > for example: cat [OUTPUTFILE] > /dev/lp0 > bsd# Have you looked at /usr/ports/print/apsfilter? This is a much more sophisticated printing system that works out of the box on FreeBSD. I've been using it for some time now, and I love it. Joe > > Thanks > Jeff Jeter > > > ----- Original Message ----- > From: "Stuart Tanner" > To: "Jeff Jeter" > Cc: "FreeBSD Questions" > Sent: Saturday, February 23, 2002 8:24 PM > Subject: Re: Linux shell scripts > > > > On Sun, 2002-02-24 at 13:17, Jeff Jeter wrote: > > > I have several apps that use shell schripts. THese apps are designed > for linux. when i run these scripts with sh i get odd errors such as Syntax > error: unexpected ")" and > > > function: not found > > > Syntax error: unexpected "}". > > > > > > I ran the one of them w/ the unexpected "}" w/ csh, and tcsh got this > error. > > > CONFARGS=--enable-opengl: Connand not found > > > prefix=/usr/local: command not found > > > prefix: undefined variable > > > > > > How do i geth these working. I can post the (t)csh output from the > other script if needed. > > > > Are the shells that the scripts are written for installed? > > > > -- > > Stuart Tanner > > > > Dave Mack: "Your stupidity, Allen, is simply not up to par." > > Allen Gwinn: "Yours is." > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message