From: nobu.nokada@... Date: 2002-06-22T18:31:07+09:00 Subject: Re: a Perl script's interaction with Ruby's system call Hi, 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: > > > > 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 Now ruby can't run a script without #! line (ruby-bugs:PR#315). -- Nobu Nakada