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