From: Joost Diepenmaat Date: 2008-08-25T05:07:13+09:00 Subject: Re: Running an executable local file with a Ruby script?? Thomas Luedeke writes: > I'm having a lot of problems just running an executable local file with > a Ruby script. I go to the directory with the file (call the executable > file 'mkplots'), then try to run that file. > > I've tried all sorts of system and back-quoted commands, and nothing > works. If I go to the UNIX command line and simply type the file name, > it runs fine. > > What am I doing wrong?? Why doesn't the following command work: > > system( "mkplots" ) Is the current path in your PATH environment variable? If not, use system( "./mkplots" ) -- Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/