pexpect - not printing more than 80 columns

Maximilian N. Andrews m.n.andrews at biophysik.chemie.uni-dortmund.de
Fri Jan 4 09:41:48 EST 2008


Dear All,

I'm trying to write a script which will check the progress of my 
MD-simulations on a cluster.

So far I've been able to ssh to each node and retrieve the data I was 
looking for by sending the command ""top -c -n 1|grep mdrun" with 
pexpect. Unfortunately the string I'm looking for is beyond the 80th 
column, so I can't use it!

Does anyone have a clue on how to retrieve the output of top (or 
anything for that matter) beyond the 80th column?

Thanks in advance!

Cheers,

Maximilian



More information about the Python-list mailing list