From owner-freebsd-questions@FreeBSD.ORG Tue Dec 19 21:24:35 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8792316A403 for ; Tue, 19 Dec 2006 21:24:35 +0000 (UTC) (envelope-from stevan-tiefert@t-online.de) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BE5D43C9F for ; Tue, 19 Dec 2006 21:24:35 +0000 (GMT) (envelope-from stevan-tiefert@t-online.de) Received: from fwd27.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1GwmRs-0008Dj-00; Tue, 19 Dec 2006 22:24:32 +0100 Received: from p54a578bf.dip.t-dialin.net (SaQ1+4ZdZemGwpb1+TQBdm40kWdVdq7y46tQbG1cs18kvxNzVm1u8+@[84.165.120.191]) by fwd27.sul.t-online.de with esmtp id 1GwmRk-10j4hE0; Tue, 19 Dec 2006 22:24:24 +0100 From: Stevan Tiefert To: freebsd-questions@freebsd.org Date: Tue, 19 Dec 2006 22:25:42 +0100 User-Agent: KMail/1.9.4 References: <200612191943.25714.stevan-tiefert@t-online.de> <458841E7.30500@u.washington.edu> In-Reply-To: <458841E7.30500@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612192225.43468.stevan-tiefert@t-online.de> X-ID: SaQ1+4ZdZemGwpb1+TQBdm40kWdVdq7y46tQbG1cs18kvxNzVm1u8+ X-TOI-MSGID: f968c3ff-6eaa-456d-8ee8-6582d24fff71 Cc: Garrett Cooper Subject: Re: acrobatviewer X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 21:24:35 -0000 Am Dienstag, 19. Dezember 2006 20:47 schrieb Garrett Cooper: > > I agree. (probably going to get flamed, but oh well..) Why in the > heck do people offer other solutions when things don't work instead of > solving the actual problem? > env says what? I'm particularly interested with what you have for > your shell because that might be a point of issue, as the problem listed > above is with a shell script of some kind (expr is a common shell command). > -Garrett > _______________________________________________ $ AcrobatViewer redbook.pdf expr: illegal option -- r usage: expr [-e] expression $ That is happening,... after that I done following: $ sh -x /usr/local/bin/AcrobatViewer redbook.pdf 2> error $ cat error | grep expr + expr lrwxr-xr-x 1 root wheel 54 19 Dez 21:34 AcrobatViewer -> /usr/local/share/java/AdobeAcrobatViewer/AcrobatViewer : .*[\>]\(.*\) + expr /usr/local/share/java/AdobeAcrobatViewer/AcrobatViewer : \(.*\).*/ + expr /usr/local/share/java/AdobeAcrobatViewer/AcrobatViewer : .*/\(.*\) + expr -r-xr-xr-x 1 root wheel 17170 19 Dez 21:34 AcrobatViewer : .*[\>]\(.*\) expr: illegal option -- r usage: expr [-e] expression + expr acrobat.jar:lax.jar : \(.*\).*[$]ENV_CLASSPATH + expr acrobat.jar:lax.jar : .*[$]\(.*\) + expr acrobat.jar : \([/]\) + expr 1 + 1 + expr lax.jar : \([/]\) + expr 2 + 1 + expr 3 + 1 + expr /usr/local/bin/javavm : .*/\(.*\) $ You see, at the 4th time "expr" was called in the script the error appears!!! My debugging knowlegde is not so great to know what to do to repair the script!!! The port print/acrobatviewer is very small! Please install the port to read the shell-script "AcrobatViewer". Regards Stevan Tiefert