On Sat, Feb 03, 2001 at 03:30:43AM +0900, Morris, Chris wrote: > > > > #!/usr/bin/env ruby > > > I'd seen the #!/usr/bin/env ruby in the pickaxe book, but this ain't flyin' > on my Linux box (but I'm truly a Linux idiot ... so I'm sure it's me...) > For that to work, you need 'ruby' in your $PATH. Try "which ruby". If you see something like which: no ruby in (/usr/bin:/bin:/usr/local/bin: ...) then you need to add 'ruby's parent directory to your $PATH - on Linux, probably by modifying '~/.bashrc'. Also, your "#!/usr/bin/env ruby" script won't work under 'cron' or CGI unless you've set up an environment with a $PATH containing 'ruby' for it to run under. For CGI scripts, or any script to be run by a privileged user, you should probably state an explicit path to 'ruby' - something like "#! /usr/local/bin/ruby" - rather than the "/usr/bin/env" thing, which is a potential security hole. > Chris David S.