Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2006 22:25:42 +0100
From:      Stevan Tiefert <stevan-tiefert@t-online.de>
To:        freebsd-questions@freebsd.org
Cc:        Garrett Cooper <youshi10@u.washington.edu>
Subject:   Re: acrobatviewer
Message-ID:  <200612192225.43468.stevan-tiefert@t-online.de>
In-Reply-To: <458841E7.30500@u.washington.edu>
References:  <D6B5375CBC761B4BAD78E414B4BB55724A23AC@mercury.rac.com.au> <200612191943.25714.stevan-tiefert@t-online.de> <458841E7.30500@u.washington.edu>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200612192225.43468.stevan-tiefert>