Python code to replace shell scripts
Daven Nair
nair_260 at hotmail.com
Thu Dec 11 13:30:38 EST 2003
Hi,
I would like to know if Python supports codes similar to shell scripts:
count=`ps -ef|grep "pattern"|wc -l`
for count in `echo $count`
do
done
fi
Can I export a variable say var from os.system("var=`ps -ef|grep pattern|wc
-l`")
thanks
_________________________________________________________________
Cell phone switch rules are taking effect find out more here.
http://special.msn.com/msnbc/consumeradvocate.armx
More information about the Python-list
mailing list