The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with dd command or maybe AFS problem Anta Shell Programming and Scripting 0 08-25-2006 07:10 AM
SSH Problem auth problem budrito UNIX for Advanced & Expert Users 1 03-17-2004 07:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-12-2005
Registered User
 

Join Date: Apr 2005
Posts: 1
AIX pg problem

Hi all,

I have problem with regards to using pg on AIX v5.3.0.0 . Here wht i am trying to do --- i have shell script with the following statements

if [ "$TERM" = vt100 ] || [ "$TERM" = vt220 ]
then
echo ^[[?3h
tput clear
pg -f $1$2
echo ^[[?3l
else
pg -f $1$2
fi

While running this on AIX v5.3.0.0, the report skips the first page and starts printing from page 2. If i remove the -f option, everything is fine i.e. i can see the report from the first page.

As per the man pages of pg, the -f option does the following

-f Does not split lines. Normally, the pg command splits lines longer than the screen width.

My program requires this option, -f.

Can someone pls guide me on how to resolve this.

Pls note: the same shell script works fine on AIX v5.2 without any problem. Also, the file sizes of pg is different in AIX v5.3 and AIX v5.2

Appreciate your help.
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0