On Thu, Mar 14, 2002 at 01:49:35PM +0100, Harald Koenig wrote:
> > Alternatively, or in addition, it could do:
> > 
> > #!/usr/bin/perl -w
> > 
> > eval 'exec perl -wS $0 ${1+"$@"}'
> >     if $running_under_some_shell;
> 
> using this method in our environment on HP-UX 11.00 I get
> 
>       /tmp > thumbpdf
>       interpreter "/usr/bin/perl" not found
>       /usr/local/bin/thumbpdf[7]: /usr/local/teTeX/bin/thumbpdf:  nicht gefunden.
> 
> so, without a configure script to locate perl this doesn't seem to work

I don't understand what you mean by this.

If you edit /usr/local/teTeX/bin/thumbpdf by adding the two lines:

 eval 'exec perl -wS $0 ${1+"$@"}'
     if $running_under_some_shell;

immediately after the #!/usr/bin/perl line, and then try running it
using the exec command from your wrapper, what happens?  Do you still
get the program dying?

But I guess using a configure script is the best way to do it.

   Julian

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

     Julian Gilbey, Dept of Maths,             Debian GNU/Linux Developer
      Queen Mary, Univ. of London         see http://people.debian.org/~jdg/
   http://www.maths.qmul.ac.uk/~jdg/           or http://www.debian.org/
        Visit http://www.thehungersite.com/ to help feed the hungry

Reply via email to