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:
>
>  eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval
> 'exec perl -S $0 $argv:q' if 0; use strict;

> Is there a way to use Ruby's system command with the more general
> 'epstopdf' system call and the above style of perl trickery?

--- 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 ...")

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE