help to print text file in unix system


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers help to print text file in unix system
# 8  
Old 10-08-2008
Hammer & Screwdriver Does the following help you?

Can you do the following?

Code:
>lp -o c myfile

the -o c says to use options and compressed printing.

There is also

Code:
>lp -o landscape -o c myfile

this will tell to print landscape (sideways) and compressed.
# 9  
Old 10-08-2008
I use Fujitsu DL 6400 Pro Dot Matrix Printer, the commands you told me didn't work on my Unix. I don't know why?
By the way, How can I know the printer support postscript or "Embedded PCL" or just "PCL"?
# 10  
Old 10-08-2008
yes I tried already, and didn't work either. Is it possible that -o doesn't work on my Unix.
# 11  
Old 10-08-2008
No. You need to find what options your printer does support.
Have you tried lpoptions -l -p <printer name>?

Do you have an .lpoptions file in your home directory? You can set printer options for your personal printer use using the lpoptions -d <printer> -o <option>

The syadmin may not have set up options for it. The lpoptions man page explains how to do that.
# 12  
Old 10-08-2008
There is no .lpoptions file in my home directory, even I cannot use "man lpoptions", How I can do?
# 13  
Old 10-08-2008
SCO Unix for printing text file

I use "getprops -v printer" to find that lp -o <option> is not available for my printer, only banner is available in script. that is why every time I try to use -o <option> to adjust font size of file that is always no working. So I need edit script of printer and let cpi work. How can I do?
# 14  
Old 10-09-2008
Printer uses IBM Proprinter XL24E or Epson ESC/P2 commands

To other posters, you'll want to take a quick look at this link: DL6400 and DL6600 Printers

Basically the printer she's using is compatible with the IBM Proprinter XL24E command set and the Epson ESC / P2. If anyone knows how to help her, that would be great.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match text to lines in a file, iterate backwards until text or text substring matches, print to file

hi all, trying this using shell/bash with sed/awk/grep I have two files, one containing one column, the other containing multiple columns (comma delimited). file1.txt abc12345 def12345 ghi54321 ... file2.txt abc1,text1,texta abc,text2,textb def123,text3,textc gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies

2. Shell Programming and Scripting

How to enforce user to Enter text when login to a UNIX / Linux system?

Hi. I inject my tracklogin.sh script in the profile of each user. $ more .profile ./tracklogin.sh # This is the default standard profile provided to a user. MAIL=/usr/mail/${LOGNAME:?} bash-3.2$ more tracklogin.sh #!/bin/bash tdate=$(date +"%d%m%y") mkdir -p /tmp/root_log... (20 Replies)
Discussion started by: mohtashims
20 Replies

3. UNIX for Dummies Questions & Answers

Reading Xml file and print the values into the text file in columnwise?

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (4 Replies)
Discussion started by: sravanreddy
4 Replies

4. UNIX for Dummies Questions & Answers

Reading XML file and print the values in the text file using Linux shell script

hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file <sequence> <Filename>aldorzum.doc</Filename> <DivisionCode>US</DivisionCode> <ContentType>Template</ContentType> <ProductCode>VIMZIM</ProductCode> </sequence>... (1 Reply)
Discussion started by: sravanreddy
1 Replies

5. Shell Programming and Scripting

UNIX file system to Linux file system migration

We would be migrating UNIX file system to Linux file system. We do have many directory and sub directories with files. after migrating unix to linux file system , i want to make sure all the files has been copied ? What would be the best approach to validate directory ,sub-directory and file... (1 Reply)
Discussion started by: balajikalai
1 Replies

6. UNIX for Dummies Questions & Answers

How to print the text between two strings in unix.

Hi Team, Would you please help me for the below scenario. I want to print the text between "PREF:" AND "AVAIL:" in the below example. For example:- TEST_TAF PREF: RAC1 RAC2 RAC3 ...... AVAIL: RAC4 Output will be :-RAC1,RAC2,RAC3............. Thanks in Advance Shoan ... (5 Replies)
Discussion started by: shoan
5 Replies

7. Shell Programming and Scripting

Search text from a file and print text and one previous line too

Hi, Please let me know how to find text and print text and its previous line. Please don't get irritated few days back I asked text and next line. I am using HP-UX 11.11 Thanks for your help. (6 Replies)
Discussion started by: kamranjalal
6 Replies

8. Shell Programming and Scripting

Print only certain lines from a text file

Hi all, I have a text file and I want to clean up the file by only print those lines start with the date. Is there anyway I can do that?  Thanks CT (1 Reply)
Discussion started by: CamTu
1 Replies

9. UNIX for Dummies Questions & Answers

How to print a text file in landscape

Could someone tell me how to print a text file in land scape. Thanks (5 Replies)
Discussion started by: yxiao
5 Replies
Login or Register to Ask a Question