The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help to escape special characters in Korn shell script rogers42 UNIX for Dummies Questions & Answers 6 05-14-2009 07:23 AM
Searching for escape characters timcs Shell Programming and Scripting 8 05-25-2007 06:29 AM
escape characters.. sharsin2001 Shell Programming and Scripting 9 11-06-2006 10:52 AM
number of escape characters? Sebarry Shell Programming and Scripting 0 06-22-2006 04:23 PM
FormFeed BEFORE printing a job Docboyeee UNIX for Dummies Questions & Answers 2 08-23-2002 03:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-15-2003
jgordon jgordon is offline
Registered User
  
 

Join Date: Oct 2003
Location: Atlanta
Posts: 21
lp FormFeed Escape characters

I'm trying to modify the /usr/lib/lp/model/netstandard file to generate a header for all the print jobs that are sent, but there is no formfeed defined so the the job prints right after the header with no page break. What is the sequence I need in order to generate a formfeed? Or, do you have another suggestion that would work better.
  #2 (permalink)  
Old 10-15-2003
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
what unix os are you using?

Do the following if your OS is sun solaris

lpadmin -x printer_name
lpadmin -p printer_name -v/dev/null -m netstandard
lpadmin -p printer_name -T unknown -I any
lpadmin -p printer_name -o protocol=tcp -o dest=printer_ipaddres:9100
/usr/bin/enable printer_name
/usr/sbin/accept printer_name


Note:
printer_name will be the name of your printer while printer_ipaddress is the ip address of your printer.
  #3 (permalink)  
Old 10-15-2003
jgordon jgordon is offline
Registered User
  
 

Join Date: Oct 2003
Location: Atlanta
Posts: 21
Solaris 8

I have a printer defined and it is working, I'm just trying to edit the netstandard file so the header will be able to generate a formfeed. By default, it doesn't define a formfeed but it does have the code to process it.
  #4 (permalink)  
Old 10-15-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
We're supposed to call a formfeed a "new page" these days. It is an octal 14. Look at your docs for your echo statement to see how to generate an octal 14. For me
echo "\014\\c" does it.
  #5 (permalink)  
Old 10-15-2003
jgordon jgordon is offline
Registered User
  
 

Join Date: Oct 2003
Location: Atlanta
Posts: 21
thanks. That did it.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0