I’m trying to invoke a perl script (epstopdf) with Ruby’s system command
on a x86 box running GNU/Linux (RH7.2) which begins with the following trickery:
Change by Thomas Esser, Sept. 1998: The above lines allows us to find
perl along $PATH rather than guessing a fixed location. The above
construction should work with most shells.
but I am getting the old “Command not found” error since the trickery fails
to find perl.
If I instead tailor the system call to my particular installation of the epstopdf script
with ‘perl /usr/bin/epstopdf’, the system call works as expected.
Is there a way to use Ruby’s system command with the more general ‘epstopdf’ system
call and the above style of perl trickery?
Thanks in advance,
···
–
Bil Kleb
NASA Langley Research Center
Hampton, Virginia, USA
— epstopdf (make sure that it’s on the PATH, and that it’s chmod +x)
#! /usr/bin/env perl
… other stuff
— your ruby program
system(“epstopdf …”)
···
On Friday 21 June 2002 12:44 pm, Bil Kleb wrote:
I’m trying to invoke a perl script (epstopdf) with Ruby’s system
command on a x86 box running GNU/Linux (RH7.2) which begins with
the following trickery:
At Sat, 22 Jun 2002 09:25:18 +0900, Ned Konz wrote:
On Friday 21 June 2002 12:44 pm, Bil Kleb wrote:
I’m trying to invoke a perl script (epstopdf) with Ruby’s system
command on a x86 box running GNU/Linux (RH7.2) which begins with
the following trickery: