Browser -> command line

Hi,

I was hoping I could get this done with PHP 5 in a day, but it’s turning
out
to be a little more complicated than I thought. Maybe Ruby can do this
sort
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
have
to do.

Any ideas on how I can do this?

Any tips/tricks/links much appreciated! :slight_smile:

On Jun 18, 8:12 pm, “Matt M.” [email protected] wrote:

Any ideas on how I can do this?

http://tryruby.hobix.com/

T.

http://www.ruby-forum.com/topic/111681

Hey thanks. I should have worded this much differently. At this point
I’m
forgetting about the browser. I know ruby, but don’t have a lot of
command
line/IO experience with it. So my question should have been more related
to
the IO class. To be more specific, how can do you mange commands,
command
status results (successful, failed?) . The basic flow would be, su to
some
other user, if password OK, proceed to next command, display error,
etc…

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

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

Thanks again.

cat #{__FILE__} is a simple example of invoking the command line from
Ruby.

This has been discussed a LOT.

There are libraries that make sysadmining easy with ruby.

Aur