From: Bil Kleb Date: 2002-06-22T04:44:02+09:00 Subject: a Perl script's interaction with Ruby's system call 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: eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q' if 0; use strict; # 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