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:
>
>
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?
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
> 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
__
-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,
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:
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:
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:
===