- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- display 132 columns
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 02:56 PM
тАО06-16-2004 02:56 PM
like below , I found that some of server can display 132 , but some of server is not work that only 80 can be display , could suggest what is the problem ? thx.
#export COLUMNS=132
# echo $COLUMNS
132
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 03:41 PM
тАО06-16-2004 03:41 PM
Re: display 132 columns
Can you pls try to vi a textfile or view a textfile with more command on the server that doesn't work, like:
# vi
# cat
# echo $TERM
# echo $TERMINFO
Pls revert the output of the above. Thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 05:06 PM
тАО06-16-2004 05:06 PM
Re: display 132 columns
I don't think you will be able to set the coloumn with this this commnad is for variable assigment.
You are assigning 132 ( number to a variable COLUMN.
You will achieve this by stty command.
stty -a will show you the current column set to 80 and you can change this temporarily by stty command ( see man stty )and permanently by putting the same command in /etc/profile.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 06:10 PM
тАО06-16-2004 06:10 PM
SolutionTo start with, what kind of terminal (emulation) are you using. For instance, if you're using xterm, make sure your TERM setting is 'xterm', not vt100 which is sometimes automagically selected when logging in. Also, check the command you're using for it being by any chance a shell script that overrides your environment variable.
Also check your terminal size if it is capable of doing 132 colums. For instance, run the 'resize' command to see the if HP-UX is seeing your terminal and size correctly. If not, that might be the cause of your problem.
And last, mind that the HP commands, like sam and swinstall, are not able to use additional columns. If you want larger windows for them, use the X-windows version of them. (perhaps next time give more info on the command you have problems with)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 06:10 PM
тАО06-16-2004 06:10 PM
Re: display 132 columns
I tried to use stty , but still can't , can suggest what is wrong ? thx.
#stty cols 132
#stty -a
speed 9600 baud; rows 24; columns 132; line = 0;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 06:15 PM
тАО06-16-2004 06:15 PM
Re: display 132 columns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 06:19 PM
тАО06-16-2004 06:19 PM
Re: display 132 columns
/usr/lib/terminfo/v/vt220
What do you see when you run 'resize' command?
# resize
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 07:42 PM
тАО06-16-2004 07:42 PM
Re: display 132 columns
I use stty to change to 132 columns ,
#stty cols 132
# stty -a
speed 9600 baud; rows 24; columns 132; line = 0;
but use your command resize , it still show 80 , can suggest what is my problem ? thx
#resize
COLUMNS=80;
LINES=24;
export COLUMNS LINES;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 08:23 PM
тАО06-16-2004 08:23 PM
Re: display 132 columns
What I am wonder is some of servers is normal to view 132 colunms but some servers can't , could suggest what is wrong ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2004 08:58 PM
тАО06-16-2004 08:58 PM
Re: display 132 columns
I found that some output can display 132 columns , eg. I type stty -a , then it output to 132 colunms , but if I type ps -ef |grep , then 80 colunms will output , what is the problem ?thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 12:25 AM
тАО06-17-2004 12:25 AM
Re: display 132 columns
For more information see "terminfo".
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 12:57 AM
тАО06-17-2004 12:57 AM
Re: display 132 columns
So forget about setting COLUMNS. NetTerm is a smart terminal emulator that uses the SIGWINCH capability in most modern Unix flavors. Just do this in your emulator:
-> Options -> Setup -> Desktop Settings
Then select the 132 button instead of the 80 button. Click on OK and the window will jump to 132 character width *and* COLUMNS in the shell will change automatically from 80 to 132. Run vi or display a wide format file and you'll see all the columns out to 132.
NOTE: NetTerm has an auto-save for it's configuration. If you exit from NetTerm, it will remember any changes you've made and will start up in the wide screen format again.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 01:08 PM
тАО06-17-2004 01:08 PM
Re: display 132 columns
I set 132 col , use vi and some command is ok to display 132 , but if use "ps -ef |grep root" , it only display 80 col. can suggest what is problem ? thx
root 965 1 0 Jun16 ? 00:00:02 /usr/bin/perl /usr/libexec/webmi
root 970 1 0 Jun16 tty2 00:00:00 /sbin/mingetty tty2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2004 12:43 AM
тАО06-18-2004 12:43 AM
Re: display 132 columns
Now if you are running Java or other applications that have massively long pasthnames or argument lists, ps has a standard limit of 60 characters for the command line. You can extend this with the -x option (as in ps -efx). If your version of ps reports an error with -x, you need the latest ps patch (sorry, none available for 10.20 or earlier).
Bill Hassell, sysadmin