AIX pg problem


 
Thread Tools Search this Thread
Operating Systems AIX AIX pg problem
# 1  
Old 04-13-2005
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Ssh problem on AIX 5.3

Hello, I have a weird ssh problem from host A to host B. Both hosts A and B running AIX 5.3. if host-A has no ~/.ssh/id_rsa.pub & ~/.ssh/id_rsa then it works fine. If I connect from host-A to host-B (as root user) ssh host-B it asks for root password and allows me to get remote root prompt upon... (0 Replies)
Discussion started by: reddyr
0 Replies

2. AIX

Problem space used on AIX 5.3

Hello everyone, Sorry for my English but i'm French. I have a problem on an AIX 5.3 server on the occupation of a file system. When i run a df -m, this is what i get : Filesystem MB blocks Free %Used Iused %Iused Mounted on /dev/fslv09 3936.00 340.94 92% 7255 ... (8 Replies)
Discussion started by: Veis
8 Replies

3. AIX

AIX OS problem? network problem?

Dear ALL. I installed AIX OS on customer sites. but Only one site is too slow when I connected telnet, ftp.. Ping is too fast. but telnet and FTP is not connected.. of course i check the configuration file on aix but it's normal. Do any Idea?? thanks in advance. - Jun - (3 Replies)
Discussion started by: Jeon Jun Seok
3 Replies

4. AIX

Problem in SIGTTOU in AIX 5.2

Hi All, I searched different websites through search engine to get my problem rectified but it went in vain. I thought let me post my issue under expert category Whenever I run any script in background like <script name> & I get the following result if I use jobs command +... (3 Replies)
Discussion started by: shahnazurs
3 Replies

5. UNIX for Dummies Questions & Answers

Crontab problem in AIX

Hi my script is as below. #! /bin/sh get=`ls -l *.ZIP | egrep -c '^-'` put=`cat Get_File_Count.txt|grep ''` if then echo $get > Get_File_Count.txt echo "Hi,\n\nYou've got a new feed!\n\nFilename : `ls -l *.ZIP|sort -k 6|tail -1|cut -c 58-90`" | mail -s "New File Received" user@domain.com... (8 Replies)
Discussion started by: naveen.kuppili
8 Replies

6. AIX

aix printing problem

i had small problem but the less of experience prevent me from solving it i added new print queue and device to aix 5.1 system and it works ok except that if i tried to print an arabic document it returns dummy data that can't be read there are alot of queues and all works fine with arabic... (0 Replies)
Discussion started by: aboharb17
0 Replies

7. AIX

AIX 5.3, TL6 problem??

Hi people, I have a IBM server (with HACMP) running AIX 5.3 with Oracle9.2. In last weekend i installed TL6... root@srv_node1:/> oslevel -s 5300-06-03-0732 but now the Shared pool of oracle is very low... making all process very slow I already try to find some answer in google...... (14 Replies)
Discussion started by: gfca
14 Replies

8. AIX

[AIX 5.2] Problem with rpm

I downloaded gcc-cplusplus-4.0.0-1.aix5.2.ppc.rpm from IBM AIX Toolbox Download Page - Alphabetical Listing but: -bash-3.00# rpm -ivh gcc-cplusplus-4.0.0-1.aix5.2.ppc.rpm error: gcc-cplusplus-4.0.0-1.aix5.2.ppc.rpm cannot be installed I can't understand wht kind of error is it... Can be... (1 Reply)
Discussion started by: untamed
1 Replies

9. AIX

telnet problem in aix

Can somebody help me. Whenever I telnet to my server i received a message /dev/pts/0: 3004-004 You must "exec" login from the lowest login shell. Connection closed. pls help me (2 Replies)
Discussion started by: vjm
2 Replies

10. UNIX for Advanced & Expert Users

AIX 5.2 problem

Hello, I'm working on a AIX5.2 OS. The problem i'm facing is that the system performance is good in rrot login, but when i switch to other users login it is very slow. A ls or even pwd command take almost 20 to 30 sec to disply output. The same logins are working fine on other... (2 Replies)
Discussion started by: pradeepmacha
2 Replies
Login or Register to Ask a Question
profile(4)						     Kernel Interfaces Manual							profile(4)

NAME
profile - set up user's environment at login time DESCRIPTION
If the file exists, it is executed by the shell for every user who logs in. The file should be set up to do only those things that are desirable for every user on the system, or to set reasonable defaults. If a user's login (home) directory contains a file named that file is executed (via the shell's before the session begins. files are useful for setting various environment parameters, setting terminal modes, or overriding some or all of the results of executing EXAMPLES
The following example is typical (except for the comments): # Make some environment variables global export MAIL PATH TERM # Set file creation mask umask 22 # Tell me when new mail comes in MAIL=/var/mail/myname # Add my /bin directory to the shell search sequence PATH=$PATH:$HOME/bin # Set terminal type echo "terminal: c" read TERM case $TERM in 300) stty cr2 nl0 tabs; tabs;; 300s) stty cr2 nl0 tabs; tabs;; 450) stty cr2 nl0 tabs; tabs;; hp) stty cr0 nl0 tabs; tabs;; 745|735) stty cr1 nl] -tabs; TERM=745;; 43) stty cr1 nl0 -tabs;; *) echo "$TERM unknown";; esac A more complete model can be found in FILES
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), su(1), environ(5), term(5). profile(4)