remove strip first formfeed form feed control l printer


What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):



From - Wed Oct 25 21:37:01 2000
Path: news.randori.com!newsfeeder.randori.com!xfer10.netnews.com!netnews.com!howland.erols.net!newshub2.home.com!news.home.com!news3.rdc1.on.home.com.POSTED!not-for-mail
From: "Dean Northam" <4udean @ home.com>
Newsgroups: comp.unix.sco.misc References: <F_jJ5.54801$N%1.28820704@news3.rdc1.on.home.com> <39F5F3D8.7EBAB975@NOSPAM-howie.org.uk> <39F60505.F3AB54E4@aplawrence.com>
Subject: Re: Stripping off form feed at printer driver
Lines: 63
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <KULJ5.60991$N%1.32351602@news3.rdc1.on.home.com>
Date: Thu, 26 Oct 2000 01:36:42 GMT
NNTP-Posting-Host: 24.114.213.73
X-Complaints-To: abuse@home.net
X-Trace: news3.rdc1.on.home.com 972524202 24.114.213.73 (Wed, 25 Oct 2000 18:36:42 PDT)
NNTP-Posting-Date: Wed, 25 Oct 2000 18:36:42 PDT
Organization: Excite@Home - The Leader in Broadband
Xref: news.randori.com comp.unix.sco.misc:67881
X-Mozilla-Status: 8010
X-Mozilla-Status2: 00000000

My Unix and Linux Troubleshooting E-Book will show you how to solve tough system problems!



Hello:



Thank-you everyone for your help, I used Tony's cause it was the cleanest
and easiest to setup. I was using "netcat" printer script so it was very
straight forward and Works GREAT!



My Working for yourself E-Book will show you how to break free from the 9 to 5 grind.










Thanks Again,
Dean



PS - Now can anyone recommend the easiest way to use the same QMS printer
(which automatically handles PCL or Postscript emulation) to merge text and
a form overlay together? I have two static forms I like to design and then
lay text over top of it (NOT fill-in the form but overlay the designed form
around the text print). I know that I need to use either PCL form and store
it in memory and then recall it (only problem is I'd have to send the form
everytime, cause I'd never know if it had been restarted) or use mpage,
psmerge or enscript and do it in postscript. I'd really like to see a real
work example if anyone has one.


cartoon
My Unix and Linux Troubleshooting E-Book will show you how to
solve tough system problems!



"Tony Lawrence" <tony@aplawrence.com> wrote in message
news:39F60505.F3AB54E4@aplawrence.com...
> Richard Howlett wrote:
> >
> > Dean Northam wrote:
> > >
> > > Hi again:
> > >
> > > We have ALOT of legacy applications which send a form feed at the
begin of
> > > year print. This is fine on our line printers, but very annoying on
the
> > > laser printers. Can someone tell me how to tr, sed or gawk (i think
that is
> > > what you might use) to strip off the first form feed in the printer
driver
> > > (I think its on the first or second line of the spooled file)?
> >
> > # The following strips off the first formfeed
> > FIRSTLINE=/tmp/lp.fl.$$
> > RESTOFILE=/tmp/lp.rs.$$
> > OUTFILE=/tmp/lp.ou.$$
> > cat "$FILE" | head -1 | tr -d "\014" > $FIRSTLINE
> > cat "$FILE" | tail +2 > $RESTOFILE
> > cat $FIRSTLINE $RESTOFILE > $OUTFILE
> > rm -f $FIRSTLINE $RESTOFILE
>
>
> An awful lot of unnecessary work:
>
> just
>
> cat $file | sed '1,2s/^L//'
>
> (the ^L is a real ctrl-L, change 1,2 to just 1 if you know for
> sure it's in the first line).
>
> --
> Tony Lawrence (tony@aplawrence.com)
> SCO/Linux articles, help, book reviews, tests,
> job listings and more : 














-
Google Friend Connect users can
comment on this page here


Enter your email address for automatic notification of new posts here
(be sure to whitelist 'feedburner.com' if you use spam filtering)

Or use any RSS reader

Delivered by FeedBurner

cartoon
My Working for yourself E-Book will show you how to break free
from the 9 to 5 grind.


Views for this page
Today This Week This Month This Year  Overall
388631 2,768

/Bofcusm/688.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

More:
       - Newsgroup




Unix/Linux Consultants


http://thatitguy.com Business networking servers, Linux and Unix experts. In business since 1997! Windows and Exchange to Samba and Scalix migration experts.


http://www.breakthru.com.au SCO (Openserver and Unixware), Unix, Solaris and Linux Consulting services including: Secure Networking Solutions; Linux based Firewalls; Backup Solutions; Secure Home to Office Network Setup; Phone, Remote and On-Site Support available - Satisfaction Guaranteed!


http://www.vss3.com SCO/Caldera OpenServer, Unixware & Linux. Tarantella & Non-stop Clustering



Twitter
  • Dec 4 07:16
    Being tired will cost me at Poker tonight but I don't see how I can squeeze in a nap.
  • Dec 4 04:06
    Wife had a nightmare at 2:00 AM; I never got back to sleep. Gave up at 4:00 and got up.









Change Congress