On Tue, Dec 17, 2013 at 11:22 AM, Peter Bailey <lists / ruby-forum.com> wrote: > "Jess Gabriel y Galn" <jgabrielygalan / gmail.com> wrote in post > #1130870: > > On Tue, Dec 17, 2013 at 6:12 PM, Peter Bailey <lists / ruby-forum.com> > > wrote: > >> /scripts/checkorca.rb: line 10: clnt: command not found > >> /scripts/checkorca.rb: line 11: syntax error near unexpected token > >> `nil,' > >> /scripts/checkorca.rb: line 11: `clnt.set_auth(nil, 'production', > >> 'prod')' > >> > >> What is it complaining about "require?" Yeh, I've got "require" there at > >> the top. But, I need it there. > >> And, why can't it find the address of that URL? > > > > Hi, > > > > I don't work with a Mac, so take this with a grain of salt: it looks > > like instead of running the script with the Ruby interpreter you are > > running it as if it were a shell script, hence all the "command not > > found" errors, cause the shell can't find those commands. Do you have > > an appropriate shebang line (not sure how that would look like in a > > Mac): > > > > something like: > > > > #!/bin/env ruby > > > > Otherwise you could try calling ruby directly: > > > > $ ruby checkorca.rb dy3242g1 > > > > Jesus. > > > Thanks, Jesus. I checked my script and I do have the shebang there. > Thanks, anyway. > > -- > Posted via http://www.ruby-forum.com/. > It might help if you pasted the script.