![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unix Printing | snvijaysankar | UNIX for Advanced & Expert Users | 2 | 06-16-2007 10:10 AM |
| UNIX Printing | MPW | UNIX for Advanced & Expert Users | 5 | 05-05-2005 07:36 AM |
| Printing under UNIX | duc | UNIX for Dummies Questions & Answers | 2 | 12-28-2004 08:20 AM |
| SCO Unix 5.0 printing | dpadron | UNIX for Advanced & Expert Users | 2 | 06-13-2003 01:19 PM |
| Printing Problems in unix ... ( Bar-cdoe - Ip Printing) | QuickSilver | UNIX for Advanced & Expert Users | 3 | 06-04-2002 07:48 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Printing from unix with lp
Hey,
When printing from UNIX all the dataafter the end of the page is not printed!! How can I use lp so that instead of just printing to the end of the page, it stops at the end of the page and then prints on the next line??? Thanx |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Have a look at the manul pages.It might help.
<pre> man lp </pre> You don't relly make clear what your exact problem is, maybe you need to set your printer up.??? |
|
#3
|
|||
|
|||
|
Sorry, I'll try to explain more.
If you have a file like this Code:
if ($current_state eq "new_file")
{
@array=split(/ /,$line);
$filename=@array[2];
$filename=substr($filename,5,length($filename));
}
<--------------------------------------> the output wil be.. Code:
if ($current_state eq "new_fi
{
@array=split(/ /,$line);
$filename=@array[2];
$filename=substr($filenam
}
Code:
if ($current_state eq "new_fi
le")
{
@array=split(/ /,$line);
$filename=@array[2];
$filename=substr($filenam
e,5,length($filename));
}
Hope this is clear now. added code tags for readability --oombera Last edited by oombera; 02-18-2004 at 01:13 PM. |
|
#4
|
||||
|
||||
|
try man fold
If that utility is installed on your system, I think it'll be exactly what you want. You can cat the file out, pipe it throught fold (I think the syntax woiuld be like fold -80, for 80 lines. The man page is more accurate than I am, though), then send it to lp. |
|
#5
|
|||
|
|||
|
Thanks alot!
fold -78 filename | lp works pefectly |
|||
| Google The UNIX and Linux Forums |