Monday, August 8, 2011

[Rails] Re: Invoking browser from Ruby script with URL argument: How?

Hi 7-stud,

Long time no "see". Thanks for looking into my question.

> file://K:/_Utilities/Apache/xampp/apache/htdocs/index.html
>
> isn't a command.

Yeah, I know, but my question is how to repair my code so that it
works. Or more specifically, what command can I take which accepts
the text of a URL as an argument and invokes my browser with that
command as an argument?

Do you have a further idea? I greatly appreciate learning any other
idea you might have on the question.

Best wishes,
Richard


On Aug 8, 3:28 pm, 7stud -- <li...@ruby-forum.com> wrote:
> exec([env,] command... [,options])
> Replaces the current process by running the given external command
>
> but
>
> file://K:/_Utilities/Apache/xampp/apache/htdocs/index.html
>
> isn't a command.
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate