On Wednesday March 25 2009, David C. Rankin wrote:
Randall R Schulz wrote:
...
Also, you might want to capture the output and see if it's really just 45 newlines or possibly something else.
...
Randall,
You are on to something. While I counted 45 lines in konsole, evidently "They're not lines." Here is what I see on konsole:
14:23 alchemy:~/linux/scripts/parse> sh xmlparse test.xml.gz | nl ... 1 Executing cleanup from trap
That suggests the output is going to the standard error, which by default is not redirected by a pipe. If you want it to be included, use this: % sh xmlparse test.xml.gz 2>&1 | nl That will merge the standard error of the command with its standard output and the combined stream will be redirected into the pipe.
...
What is really strange, is I modified the trap to remove the 'EXIT' signal and just added cleanup at the end to cover the normal exit. Still it makes no difference. As long as trap is in the script, I get the big blank...
Any other thoughts??
If it's not too long, why don't you post the whole script (and attach it, don't sent it in the message text).
-- David C. Rankin
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org