473,325 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Unix/Neoware/Linux Print Problem

4
Hi all,

My problem is that I have generated a text file on unix which I want to print on a neoware(Neolinux) box.

The problem is that the line length is 2 big so when I print it the text is wrapped around.In windows we have the option of reducing font and printing.Is there any such option available on Unix..?


The files to be printed will be placed on a Neoware machine ( a thin linux client ) which does not support any Unix print command except lpr (doesnt support a2ps/ensript/lp..)---> what I am looking for is a solution wherein I can either reduce the file font before hand on the unix machine and then send it to the Neoware for printing, or send the file to Neoware and print with a different font over there (though I tried all the lpr options on neoware..they arent working including page-left/landscape/lpi/cpi..etc)


Is there no way of reformatting the text on Unix, like decreasing file font and saving it in a new file? Or how to install a2ps command on neoware..?


Could someone suggest the best way for it..??
Oct 1 '07 #1
4 2426
Motoma
3,237 Expert 2GB
The font, style, and general appearance of the text as it is printed is a result of the tool you use to print it with. The same way that notepad and wordpad will print the same text file differently, if you wish to have Linux print a text file in a different way, you will need to print it from a more flexible program. I am not familiar with lpr, but there are a number of text editing programs with interfaces ranging from the command line to a full X11 interface--each with its own capabilities for printing.

Hi all,

My problem is that I have generated a text file on unix which I want to print on a neoware(Neolinux) box.

The problem is that the line length is 2 big so when I print it the text is wrapped around.In windows we have the option of reducing font and printing.Is there any such option available on Unix..?


The files to be printed will be placed on a Neoware machine ( a thin linux client ) which does not support any Unix print command except lpr (doesnt support a2ps/ensript/lp..)---> what I am looking for is a solution wherein I can either reduce the file font before hand on the unix machine and then send it to the Neoware for printing, or send the file to Neoware and print with a different font over there (though I tried all the lpr options on neoware..they arent working including page-left/landscape/lpi/cpi..etc)


Is there no way of reformatting the text on Unix, like decreasing file font and saving it in a new file? Or how to install a2ps command on neoware..?


Could someone suggest the best way for it..??
Oct 2 '07 #2
foal11
4
Hi,
Thanks for the reply..

C the problem is that when I print the file on neoware,the file has already been generated on unix so I cant recreate the file again.All I have to do is print it.The text size as printed by default from Unix is 2 big.So either I format it from the source ,i.e Unix or print it with a smaller font,eg a2ps but that command is not available in Neolinux.

So keeping in mind the above constraints,what would be the best way forward..?




The font, style, and general appearance of the text as it is printed is a result of the tool you use to print it with. The same way that notepad and wordpad will print the same text file differently, if you wish to have Linux print a text file in a different way, you will need to print it from a more flexible program. I am not familiar with lpr, but there are a number of text editing programs with interfaces ranging from the command line to a full X11 interface--each with its own capabilities for printing.
Oct 6 '07 #3
Or how to install a2ps command on neoware..?
I am a bit unclear on something. Why are you using the very basic commands on the thin client? When the file is transferred from the Unix machine to NeoWare why don't you use the server supplied OS (whatever it may be) to change the file and print it?

It doesn't look like your using the thin client right...
Oct 7 '07 #4
foal11
4
The option will only be available on NeoLinux and not from the server OS , i.e Suse Linux.

The automated process willl be called from the thin client


I am a bit unclear on something. Why are you using the very basic commands on the thin client? When the file is transferred from the Unix machine to NeoWare why don't you use the server supplied OS (whatever it may be) to change the file and print it?

It doesn't look like your using the thin client right...
Mar 3 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

18
by: Sharon | last post by:
is microsoft going to develop .Net for Unix? or at lest CLR for Unix? 10x
9
by: fidlee | last post by:
I dont know if this is the right place to ask this question. i got this book "The C Odyssey. Unix - The Open, Boundless C" It is a 1992 edition book The book speaks of all the unix specific...
4
by: Michael | last post by:
Hi, I'm having difficulty finding any previous discussion on this -- I keep finding people either having problems calling os.exec(lepev), or with using python's exec statement. Neither of...
4
by: Ignoramus6539 | last post by:
There were some strange requests to my server asking for config.php file (which I do not have in the requested location). I did some investigation. Seems to be a virus written in perl,...
21
by: Paul Edwards | last post by:
I would like to port PDPCLIB: http://sourceforge.net/projects/pdos/ my public domain C runtime library for DOS, OS/2, Win32, MVS to Unix now. I am a bit perplexed as to how to do this. ...
3
by: iamsiju | last post by:
Hi, I am facing a problem with the Perl Telnet Object. My Telnet Object hangs just after issueing reboot command on the remote host. Please help me who faced this problem !!! Thanks in...
2
by: foal11 | last post by:
Hi all, My problem is that I have generated a text file on unix which I want to print on a neoware(Neolinux) box. The problem is that the line length is 2 big so when I print it the text is...
2
by: Mirko Vogt | last post by:
Hey, it seems that the socket-module behaves differently on unix / windows when a timeout is set. Here an example: # test.py import socket...
0
by: Mirko Vogt | last post by:
Gabriel Genellina wrote: Hey, this is strange. Linux: $ python --version Python 2.5.2 $ Windows:
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.