Greetings all,<br><br>I have attached a patch for commands.py to provide a callback ability.&nbsp; Example use:<br><br>-------------------------------------<br>import commands<br><br>cmd = 'top -b -n2'<br><br>def fancy(out):<br>
&nbsp;&nbsp;&nbsp; print 'GOT(%s)' % out.strip()<br><br>commands.cb = fancy<br><br>(s,o) = commands.getstatusoutput(cmd)<br>print 'OUTPUT (%s)' % o<br>-------------------------------------<br><br>I am not sure if this is the proper forum or means to submit something like this, so please forgive me and advise accordingly if I am in error.&nbsp; The basic idea is obvious, to allow long-running commands to call back whenever there is output.&nbsp; This is against python 
2.4.&nbsp; Please let me know if you have any questions or suggestions.<br><br>thanks!!<br>-brad<br>