Re: os.popen('alias')

2005-11-18 Thread Lars Kellogg-Stedman
;alias' However, even if /bin/sh is actually bash, dotfiles such as .profile and .bashrc aren't read when using the '-c' option. If you really want to do something to your bash aliases with python, you could pipe them into a python command: $ alias | python myscript.py -- Lars

Re: Python on linux

2005-11-18 Thread Lars Kellogg-Stedman
> Hi i wanted to know how can i find disk size on linux platform using > python. You could use python to drive the 'sfdisk' command through a pipe, which will probably do much of what you want. -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> This email address wil

Re: Zope vs Php

2005-11-17 Thread Lars Kellogg-Stedman
n here: http://kid.lesscode.org/language.html There's a standlone Python TAL implementation here: http://www.owlfish.com/software/simpleTAL/ -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> This email address will expire on 2005-11-23. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hot to split string literals that will across two or more lines ?

2005-11-17 Thread Lars Kellogg-Stedman
> Minor pedantry, but the plus sign is redundant. Thanks for catching that...I haven't been working with Python as much as I was a year or so ago and I'm forgetting some of the details. -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> This email address will expire on 20

Re: Zope vs Php

2005-11-17 Thread Lars Kellogg-Stedman
> And finally - got a URL? This got me to the right place pretty quickly: http://www.google.com/search?q=python+kid+template -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> This email address will expire on 2005-11-23. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hot to split string literals that will across two or more lines ?

2005-11-17 Thread Lars Kellogg-Stedman
> print "a string whcih is very very looo\ > ng." print "a string which is very loo" \ + "ong." -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> This email address will expire

Re: Auto Install Linux Rpm's

2005-11-16 Thread Lars Kellogg-Stedman
ou roll your own. If I were you, I would probably just use Yum to do all the heavy lifting, rather than trying to re-implement it. Then your work boils down to: IF (installed version of package) != (version of package in config file) THEN yum -y install END IF -- Lars -- Lars Kell

Re: how to bypass firewall

2005-11-15 Thread Lars Kellogg-Stedman
> I need some help regrading byassing firewalls. You'll need to go to comp.lang.perl for help with that problem. -- Lars -- Lars Kellogg-Stedman <[EMAIL PROTECTED]> This email address will expire on 2005-11-22. -- http://mail.python.org/mailman/listinfo/python-list