473,385 Members | 1,356 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,385 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 2433
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.