[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: can I do windows shell scripting in ruby?

davy.bold

5/23/2007 1:41:00 PM

On 23 Mai, 14:46, "Jano Svitok" <jan.svi...@gmail.com> wrote:
> On 5/23/07, davy.b...@googlemail.com <davy.b...@googlemail.com> wrote:
>
> > Hello,
>
> > I am totally new to ruby and interested in doing a backup job on
> > windows in ruby. Don't know if it is possible though!
>
> > I would need to get backups of Trac and Subversion with their
> > respective admin tools like svn-admin.exe.
>
> > So what the script should do is making a call like svn-admin arg1 arg2
> > etc.
>
> > How can I do this?
>
> > Thanks in advance
>
> either
> arg1 = "sdas"
> arg2 = "sadada"
> `svn-admin #{arg1} #{arg2}`
>
> or replace the last line with
> system('svn-admin', arg1, arg2)

hey, that is awesome how fast the response came. This encourages me to
learn ruby as scripting language as I need to know about one!
So it worked out!

By the way, where can I find posting rules for this newsgroup?

thanks

Daniel