Truncation Occurs When Outputting Shell Script to stderr

Operating System: Solaris 10, Shell

We are outputting the results of our scripts to the stderr file. However we have encountered a problem where some of the lines in the file are truncated.

Is there a way to increase the terminal or column size within the script so that this does not happen?

That just doesn't happen at the STDERR redirection stage. It must be either your viewer or the thing that's writing to STDERR.

Check what it looks like without redirecting, then compare after.

You might want to post some examples and the code you are using (remember to use CODE tags for that of course) :slight_smile:

Hi there and thanks for the reply,

This is just a standard redirection (echo) to a file. Therefore would this not be related to the profile terminal size or something like that?

Hi.

No, there's no relation between the two things.

Can you post an example piece of code which doesn't do what you think it should, and a sample of the output file too?

Might need to set your terminal to "wrap" (on the terminal not in unix) to see the full line on the screen.