Forum: Ruby browser -> command line

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
444c7d8579d3389a76c8497f5cb66c13?d=identicon&s=25 M.W. Mitchell (goodieboy)
on 2007-06-19 02:14
(Received via mailing list)

I was hoping I could get this done with PHP 5 in a day, but it's turning
to be a little more complicated than I thought. Maybe Ruby can do this
of thing easier? What I'd like to do is have a browser/web interface
talk to
a command line script, that in turn does an svn update on a particular
directory. I'd also like to be able to get "real-time" output from the
script. I realize that getting real-time feedback in the browser will
require ajax. Updating from SVN is only one of the command line tasks I
to do.

Any ideas on how I can do this?

Any tips/tricks/links much appreciated! :)
45196398e9685000d195ec626d477f0e?d=identicon&s=25 Trans (Guest)
on 2007-06-19 05:43
(Received via mailing list)
On Jun 18, 8:12 pm, "Matt M." <> wrote:
> Any ideas on how I can do this?

444c7d8579d3389a76c8497f5cb66c13?d=identicon&s=25 M.W. Mitchell (goodieboy)
on 2007-06-19 05:50
(Received via mailing list)
444c7d8579d3389a76c8497f5cb66c13?d=identicon&s=25 M.W. Mitchell (goodieboy)
on 2007-06-19 06:07
(Received via mailing list)
Hey thanks. I should have worded this much differently. At this point
forgetting about the browser. I know ruby, but don't have a lot of
line/IO experience with it. So my question should have been more related
the IO class. To be more specific, how can do you mange commands,
status results (successful, failed?) . The basic flow would be, su to
other user, if password OK, proceed to next command, display error,

Feel like showing me a skeleton script that could do something like
that? :)

I've been messing with IO.popen, Kernel.system tonight and getting some

Thanks again.
7b4707f974af261f71943e1f2046c9ee?d=identicon&s=25 SonOfLilit (Guest)
on 2007-06-19 16:24
(Received via mailing list)
`cat #{__FILE__}` is a simple example of invoking the command line from

This has been discussed a LOT.

There are libraries that make sysadmining easy with ruby.

This topic is locked and can not be replied to.