how to parse system functions output

praba kar prabapython at yahoo.co.in
Wed Apr 6 09:00:59 EDT 2005


Dear all,

      I want to parse the system functions output
but I couldn't do it. Kindly assist me in this
task.

eg) bytesused = os.system('du -sh /Users/enmail')
if I print this bytesused variable the output of
bytesused variable is the below

14M     /Users/enmail
0

Now From this Output I want only '14M" I cannot split
this output by space.  If anyone know regarding this
mail me ASAP

regards
Prabahar


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony



More information about the Python-list mailing list