defining a variable from the command prompt



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/.

.



Relevant Pages

  • Re: how to see error text on quit in vim
    ... it's saying there's an error somewhere in my .vimrc file. ... look up the "script" command. ... After that, *exit from the subshell*, and then view the contents of ...
    (comp.editors)
  • Re: Group Policy deployed logon scripts
    ... if i were to put the regedit.exe /s command into the login script, ... changes wouldn't take effect until the next login. ... that login (as registry CSE's are processed before script CSE's) ... Am I correct in saying that ADM templates would have immediate effect? ...
    (microsoft.public.windows.group_policy)
  • Error -16999
    ... Hello, Entourage can send emails, but it can't retrieve any saying ... Error -16999 The POP server returned an unexpected reply to a command ...
    (microsoft.public.mac.office.entourage)
  • Re: command for script
    ... what the command was. ... on saying: ... This text is not output anywhere in the script you pasted below, ... believe it is the shell and not the perl program that complains ...
    (comp.lang.perl.misc)
  • Re: Problems trying to configure Linux laptop to print to Windows XP shared printer
    ... map to guest = Never ... check password script = ... enumports command = ... ldap delete dn = No ...
    (comp.os.linux.setup)