Browser -> command line


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! :slight_smile:

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

Any ideas on how I can do this?


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? :slight_smile:

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

Thanks again.

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs