From: Daniel Stephens Date: 2013-05-08T21:19:31+09:00 Subject: Re: Problem with FileUtils move command. --089e0118413e1cfa8e04dc33f2fc Content-Type: text/plain; charset=ISO-8859-1 can you post some of the script? On Wed, May 8, 2013 at 6:43 AM, Peter Bailey wrote: > Chris Hulan wrote in post #1108213: > > how is the script invoked? > > the fact that your 'puts pdffile' is not showing anything is an > > indicator > > that the value is nil > > Could be a typo: the var that refers to the file is not actually > > 'pdffile'? > > or the script is not getting a file name on the command line? > > This Ruby script is activated by our scheduling software. When a file > appears in a certain directory, the scheduler kicks in this script. And, > the script acts on the files in the directory, one at a time. The file > itself is defined at the top of the Ruby script with PDFFILE = ARGV[0] > > Right now I've got the scheduling service turned off for this job and > I'm just manually invoking the Ruby script, along with the file, in the > Windows command shell. > > -- > Posted via http://www.ruby-forum.com/. > > --089e0118413e1cfa8e04dc33f2fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
can you post some of the script?


On Wed, May 8, 2013 at 6:43 A= M, Peter Bailey <lists@ruby-forum.com> wrote:
Chris Hulan wrote in post #1108213:
> how is the script invoked?
> the fact that your 'puts pdffile' is not showing anything is a= n
> indicator
> that the value is nil
> Could be a typo: the var that refers to the file is not actually
> 'pdffile'?
> or the script is not getting a file name on the command line?

This Ruby script is activated by our scheduling software. When a file=
appears in a certain directory, the scheduler kicks in this script. And, the script acts on the files in the directory, one at a time. The file
itself is defined at the top of the Ruby script with PDFFILE =3D ARGV[0]
Right now I've got the scheduling service turned off for this job and I'm just manually invoking the Ruby script, along with the file, in the=
Windows command shell.

--089e0118413e1cfa8e04dc33f2fc--