From: Austin S. <te...@of...> - 2004-10-08 09:07:04
|
On Fri, Sep 17, 2004 at 06:41:35AM -0700, David Bellizzi wrote: > > Hey all, > In my log file I'm getting a lot of ^M chars and it seems that size is is > set to 80 chars. Whats the best way to get rid of this so I don't see > excessive white space and my long command lines are visible? > stty cols would probably be the way, but since it's a non-posix terminal extension (don't ask) you probably have to fool with it as you spawn your process, e.g.: $logfile_reader = Expect->spawn("stty cols 0; cat $logfile"); That _should_ work. I'm not sure if 0 means undefined everywhere, but it probably does. Austin |