Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Luke Paireepinart
Justin Cardinal wrote: > That fixed it, thanks! Now I just need to do some studying on working with > lists (or whatever this output is...) so I can filter out the results I > don't want. Here's an updated version of the program: > >

Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Luke Paireepinart
Tiger12506 wrote: >> results.write(c.getoutput('svnadmin lslocks ' + eval(row))) >> > > Mmm... I want to add that the eval function tries to execute whatever is in > the argument passed as python expressions. > Did I not say that already? ;) I guess my term 'command' was the problem, eh?

Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Justin Cardinal
That fixed it, thanks! Now I just need to do some studying on working with lists (or whatever this output is...) so I can filter out the results I don't want. Here's an updated version of the program: #!/usr/bin/env python import co

Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Tiger12506
> results.write(c.getoutput('svnadmin lslocks ' + eval(row))) Mmm... I want to add that the eval function tries to execute whatever is in the argument passed as python expressions. >>> eval('1+2') 3 >>> row = 4 >>> 1+row 5 >>> eval('1+row') 5 >>> JS __

Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Andreas Kostyrka
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 mkarg is quite useful, from time to time. Andreas Luke Paireepinart wrote: > Justin Cardinal wrote: >> I'm trying to write a program that will list all subversion repository >> directories, then issue a command using each directory as an argument,

Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Luke Paireepinart
Justin Cardinal wrote: > I'm trying to write a program that will list all subversion repository > directories, then issue a command using each directory as an argument, > then parse those results. So far, I'm able to get a list of the > directories...and that's it! > Here's what I've got so far:

Re: [Tutor] Working with bash (subversion)

2007-07-18 Thread Luke Paireepinart
Justin Cardinal wrote: > I'm trying to write a program that will list all subversion repository > directories, then issue a command using each directory as an argument, > then parse those results. So far, I'm able to get a list of the > directories...and that's it! > Here's what I've got so far:

[Tutor] Working with bash (subversion)

2007-07-18 Thread Justin Cardinal
I'm trying to write a program that will list all subversion repository directories, then issue a command using each directory as an argument, then parse those results. So far, I'm able to get a list of the directories...and that's it! Here's what I've got so far: ===