Re: Can you run Ruby Scripts via get shell?
Re: Can you run Ruby Scripts via get shell?
- Subject: Re: Can you run Ruby Scripts via get shell?
- From: "Mark J. Reed" <email@hidden>
- Date: Sat, 17 Mar 2007 17:53:54 -0400
If you type
ruby -e 'vince'.capitalize
in a Terminal window, that won't work either. By the time Ruby sees
the command it's just
vince.capitalize
and the identifier vince isn't defined, so you get an error.
You need to quote the entire argument to -e, independent of any
quotation marks you use inside it:
ruby -e 'puts "vince".capitalize'
works in a terminal window or via do shell script.
On 3/17/07, Vince Angeloni <email@hidden> wrote:
I'm just tinkering around with Ruby and I'm a total Ruby noob. I'm
able to run Ruby scripts using saved "shell script" files made
executable, but I'm not able to get a short script to run "on the fly".
Using the following as the shell script errors:
ruby -e 'vince'.capitalize
Has anyone tried this? What's the secret?
TIA
vince
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden