The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need to replace the first word of a line if it occurs again in the next line(shell) geeko Shell Programming and Scripting 4 06-18-2009 03:36 PM
Script Assistance - Outputting to file with Awk spartan22 Shell Programming and Scripting 1 04-17-2009 12:32 PM
Exiting from script when error occurs Sreejith_VK Shell Programming and Scripting 4 04-25-2008 04:53 AM
simple count script outputting mass errors aspect_p Shell Programming and Scripting 2 03-09-2008 07:58 PM
expr not outputting properly.. bsd sh script aspect_p Shell Programming and Scripting 2 03-07-2008 01:01 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2009
fazzasx fazzasx is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 3
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?
  #2 (permalink)  
Old 08-23-2009
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
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)
  #3 (permalink)  
Old 08-24-2009
fazzasx fazzasx is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 3
Truncation Occurs When Outputting Shell Script to stderr

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?
  #4 (permalink)  
Old 08-24-2009
scottn scottn is offline Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,134
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?
  #5 (permalink)  
Old 08-24-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,184
Might need to set your terminal to "wrap" (on the terminal not in unix) to see the full line on the screen.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0