defining a variable from the command prompt
- From: Jeff Miller <loadeddesigns@xxxxxxxxx>
- Date: Sun, 18 May 2008 21:05:45 -0500
hello,
I have a script that sends emails out to my company, and I would like
to be able to run it by saying (from the command prompt):
sendemail.rb "this is my message"
then it would take "this is my message" and use that as @msg or
something. I know its possible, but I'm still pretty new to Ruby and not
sure how to do this.
Any help is appreciated!
Thanks,
- Jeff Miller
--
Posted via http://www.ruby-forum.com/.
.
- Follow-Ups:
- Re: defining a variable from the command prompt
- From: Peña, Botp
- Re: defining a variable from the command prompt
- Prev by Date: Re: Needing to pipe commands to automate program
- Next by Date: Re: defining a variable from the command prompt
- Previous by thread: [ANN] Rassmalog 11.0.2
- Next by thread: Re: defining a variable from the command prompt
- Index(es):
Relevant Pages
|