;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
> 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
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
> 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
> 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
> 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
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
> 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