LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2004, 03:00 AM   #1
williamjxj
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
how many chars can be displayed in a line?


Hi, there,

I would like to ask 2 questions about the line display:

1) when I use xterm to key in 'ps ax |grep httpd', the result only display the fist 80 chars, actually that there are much more than 80 chars. I remember netterm can ajust the chars to 130 chars per line. I wonder the display is related to certain terminal type, or can control by commands?

2) how to control chars number per line in a printing environment? when I have a file that contains more than 100 columns in a line, how to make 'lp' to fully print the file, instead of lost the chars at the end of each line?

Thanks a lot,
william
 
Old 10-25-2004, 03:24 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I suggest you study the man pages for ps. The --col option may be what you need to keep from loosing output.
To pipe output to a printer, consider piping througn enscript (see man enscript for info on formating options).

Aside: most apps I've encountered have a 255 char limit on input lines.

Last edited by bigrigdriver; 10-25-2004 at 06:51 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ text file line by line/each line to string/array Dimitris Programming 15 03-11-2008 08:22 AM
international chars awl Slackware 8 09-01-2005 01:17 PM
Ventrilo and wine, nothing displayed as 'Line' cexshun Linux - Software 2 06-25-2005 03:04 PM
urxvt not displaying some chars kostian Linux - Software 0 02-15-2005 06:52 AM
chars } and $ won't work.. among others.. apax Linux - Newbie 8 11-26-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration