Forum OpenACS Q&A: Fixing Up Monitoring Package: exec truncates lines inappropriately

Hi all, I am freshing up the monitoring package and am currently stymied by truncation of lines by the tcl exec command.

I want to use top -bn1 -c as my command so that I can save the complete command string. This works fine from the command line but when I run it in a tcl shell using %exec top -bn1 -c I can't get access to the full line, its truncated to ~80 chars.

I know this isn't a fundamental limitation of exec because %exec ps -auxw will give me wide lines.

The obvious workaround is to write a tiny shell script that stuffs the output of top into a temp file and then read that file using tcl, but I would prefer something more direct.

Thanks,

Carl Coryell-Martin
Carl

'ps xwopid,command' will get you the full command won't it? And this can be extended to include other columns if you want them.

    - Steve