tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: George Gallen <ggallen () slackinc ! com>
To: tru64-unix-managers
Subject: Summary: appending a FF without getting the trailing /n?
Date: Fri, 01 Dec 2000 20:05:21 +0000	[thread overview]
Message-ID: <97570104324262.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C05BD2.08979870", Size: 5403 bytes --]

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C05BD2.08979870
Content-Type: text/plain;
	charset="iso-8859-1"

I'm not sure why my email was converted from Plain Text to HTML....sorry.
 
Two suggestions were to use the -n switch on echo or use of printf.
 
I used the -n switch and worked fine.
 
Thanks for the replys.
 
I must of missed that switch on the man page...Oh well.
 
George

-----Original Message-----
From: George Gallen [mailto:ggallen@slackinc.com]
Sent: Friday, December 01, 2000 2:49 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: appending a FF without getting the trailing /n?



I'm trying to append a FF to end of print job prior to the lp command 

I'm using: 

(cat - | /usr/mbin/lf2crlf ; echo "^L") | lp -d PR32 

This does append a FF, but it also ads a /n after the FF, which 
causes the paper to jump one line after a FF, throwing off alignment 

Other than prepending a '\n' to make the first page look like the rest 
(also stops you from being able to print on the first line). 

Thanks 
George 

I'm on a AS2100 3.2c DU 

George Gallen 
Senior Programmer/Analyst 
Accounting/Data Division 
ggallen@slackinc.com 
ph:856.848.1000 Ext 220 

SLACK Incorporated - An innovative information, education and management
company 
http://www.slackinc.com <http://www.slackinc.com>  


------_=_NextPart_001_01C05BD2.08979870
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>appending a FF without getting the trailing /n?</TITLE>

<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff size=2>I'm 
not sure why my email was converted from Plain Text to 
HTML....sorry.</FONT></SPAN></DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff size=2>Two 
suggestions were to use the -n switch on echo or use of 
printf.</FONT></SPAN></DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff size=2>I used 
the -n switch and worked fine.</FONT></SPAN></DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff size=2>Thanks 
for the replys.</FONT></SPAN></DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff size=2>I must 
of missed that switch on the man page...Oh well.</FONT></SPAN></DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=640100320-01122000><FONT face=Arial color=#0000ff 
size=2>George</FONT></SPAN></DIV></FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader><FONT face="Times New Roman" 
  size=2>-----Original Message-----<BR><B>From:</B> George Gallen 
  [mailto:ggallen@slackinc.com]<BR><B>Sent:</B> Friday, December 01, 2000 2:49 
  PM<BR><B>To:</B> 'tru64-unix-managers@ornl.gov'<BR><B>Subject:</B> appending a 
  FF without getting the trailing /n?<BR><BR></FONT></DIV>
  <P><FONT face=Arial size=2>I'm trying to append a FF to end of print job prior 
  to the lp command</FONT> </P>
  <P><FONT face=Arial size=2>I'm using:</FONT> </P>
  <P><FONT face=Arial size=2>(cat - | /usr/mbin/lf2crlf ; echo "^L") | lp -d 
  PR32</FONT> </P>
  <P><FONT face=Arial size=2>This does append a FF, but it also ads a /n after 
  the FF, which</FONT> <BR><FONT face=Arial size=2>causes the paper to jump one 
  line after a FF, throwing off alignment</FONT> </P>
  <P><FONT face=Arial size=2>Other than prepending a '\n' to make the first page 
  look like the rest</FONT> <BR><FONT face=Arial size=2>(also stops you from 
  being able to print on the first line).</FONT> </P>
  <P><FONT face=Arial size=2>Thanks</FONT> <BR><FONT face=Arial 
  size=2>George</FONT> </P>
  <P><FONT face=Arial size=2>I'm on a AS2100 3.2c DU</FONT> </P>
  <P><B><FONT face="Times New Roman" color=#800000 size=2>George 
  Gallen</FONT></B> <BR><FONT face="Times New Roman" color=#800000 size=2>Senior 
  Programmer/Analyst</FONT> <BR><FONT face="Times New Roman" color=#800000 
  size=2>Accounting/Data Division</FONT> <BR><FONT face="Times New Roman" 
  color=#800000 size=2>ggallen@slackinc.com</FONT> <BR><FONT 
  face="Times New Roman" color=#800000 size=2>ph:856.848.1000 Ext 220</FONT> 
</P>
  <P><B><FONT face="Times New Roman" color=#800000 size=2>SLACK 
  Incorporated</FONT></B><FONT face="Times New Roman" color=#800000 size=2> -<I> 
  An innovative information, education and management company</I></FONT> 
  <BR><U><FONT face="Times New Roman" color=#0000ff size=2><A target=_blank 
  href="http://www.slackinc.com">http://www.slackinc.com</A></FONT></U> 
</P></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C05BD2.08979870--

                 reply	other threads:[~2000-12-01 20:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox