Sponsored Content
Operating Systems SCO Print out disappers on SCO System Post 302430083 by jgt on Wednesday 16th of June 2010 01:36:56 PM
Old 06-16-2010
That is an escape sequence to turn LF into CRLF otherwise a laser printer would print the entire report on the first line, and probably not eject the page, leaving you with the impression that nothing went to the printer.

You could try this for a printer interface.
Create a new printer, local using /dev/null for the device, and dumb for the interface.
Modify the /usr/spool/lp/admins/lp/interfaces/destination to look like the following.

Code:
: ${LOCALPATH:=${SPOOLDIR}/bin}          
                                         
F=`/bin/basename $1`                     
                                         
copies=$4                                
shift; shift; shift; shift; shift        
files="$*"                               
i=1                                      
while [ $i -le $copies ]                 
do                                       
        for file in $files               
        do                               
        echo "root\n" >/tmp/$F           
        echo "put $file LPT1" >>/tmp/$F  
        echo "quit" >>/tmp/$F            
        ftp office </tmp/$F              
        done                             
        rm /tmp/$F                       
        i=`expr $i + 1`                  
done                                     
                                         
                                         
exit 0

Where 'office' is the IP/hostname of the printer, and LPT1 is the queue name of the jetdirect.
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

SCO TCP/IP runtime System for SCO Unix

Hi everyone i have a question for all of you. It may be basic or it may be a good one. I recently aquired a copy of "SCO TCP/IP runtime System for SCO Unix" (thats what the disks say) and for the life of me i can not get it to load. i have tried opening the disk in linux and it can not determine... (0 Replies)
Discussion started by: Cerberus
0 Replies

2. SCO

system log of SCO

Hi, I did shutdown and restart SCO server, now wanna find log to know exactly when system was effected. I took a look at /var/adm/ but seem there are no logs for my required information. it seems diff from Sun or HP UNIX... appreciate all your help. Thanks (2 Replies)
Discussion started by: milo
2 Replies

3. SCO

where can get iso of sco system v 5.05

hi all please someone tell me where can get iso of sco System V vs 5.05 regards (1 Reply)
Discussion started by: weramirez
1 Replies

4. UNIX for Advanced & Expert Users

Disable/Enable HP print services SCO OS 5

We're running SCO Open Server 5. On occassion we need to disable/enable HP print services. There's nothing that I have found in the HP printer manager that allows for this. I know we can stop/start print services via SCOADMIN. On occassion one of our HP printers will generate an error, the msg in... (4 Replies)
Discussion started by: sighbrrguy
4 Replies

5. UNIX for Dummies Questions & Answers

Full System Backup Sco 5.0.5

I would like to know if I can do a full system back up on my Unix Sco openserver 5.0.5 Machine. If so, What is the syntax to do this or where can I find this information at? Also, is it possible to make this tape bootable so that I can easily do a full system restore? Any information on... (2 Replies)
Discussion started by: nellenodrog
2 Replies

6. SCO

SCO system V documentation

Hi! I'm about to throw away a shelf meter or so of SCO system V official documentation. The original beige binders. I'm not sure if there is a shortage of these old books, but if anyone near Gothenburg, Sweden has use for them. Drop me a line at : martin (dot) rudolfson at mac (dot) com Martin (4 Replies)
Discussion started by: iMan
4 Replies

7. SCO

Sco openserver 5 print queue problems

Hwey I manage a Unix box where I ama having multiple printer problems. the only way to get printers to print again is by rebooting. I stop and start services with no luck. Any one have any ideas? It can go weeks with being OK but then any given printer can go and cause the entire print queue to... (6 Replies)
Discussion started by: uk2us88
6 Replies

8. SCO

Help on System Freeze in SCO

Hi, My SCO server freezes suddenly. I just want to know if there any tools / commands availble that can find which is causing the freeze? Any help on this would be greatly appreciated. Regards, Ravikumar R (4 Replies)
Discussion started by: rrb2009
4 Replies

9. SCO

laser print on sco openserver 6.0

Dear friends, Please tell me How install ethernet hp laser print p4015n on open server sco 6.0. Thank you, Edgar Guevara (10 Replies)
Discussion started by: Edgar Guevara
10 Replies

10. SCO

SCO Development System for System V 3.2 R4.2

Hi Guys, Some time ago I get a disk for my SCO System V 3.2 R4.2 tcp 1.2.1 distribution. Now 4 Year later I am serarching the development system due to the fact that System V did not come with the C compiler. There is any change to get it ? my intention is academyc only. or anyone... (3 Replies)
Discussion started by: locovich
3 Replies
lp(1)							      General Commands Manual							     lp(1)

Name
       lp - send requests to an LP line printer

Syntax
       lp [-c] [-d dest] [-n number] [-] [files]

Description
       The command arranges for the named files and associated information (collectively called a request) to be printed by a line printer.  If no
       file names are mentioned, the standard input is assumed.  When a file name is designated by a minus sign (-) it	stands	for  the  standard
       input  and may be supplied on the command line in conjunction with named files.	The order in which files appear is the same order in which
       they are printed.

       This command exists for X/OPEN compatibility.

Options
       The following options to may appear in any order and may be intermixed with file names:

       -c	   Makes copies of the files to be printed immediately when is invoked.  Normally, files are not copied, but are  linked  whenever
		   possible.  If the -c option is not given, then the user should be careful not to remove any of the files before the request has
		   been printed in its entirety.  It should also be noted that without the -c option, any changes made to the  named  files  after
		   the request is made but before it is printed are reflected in the printed output.

       -d dest	   Chooses  dest  as  the  printer that is to do the printing.	If dest is a printer, then the request is printed on that specific
		   printer.  By default, dest is taken from the environment variable PRINTER if it is set.  Otherwise, a default destination,  lp,
		   is used.

       -n number   Prints number copies (default of 1) of the output.

Files
       /etc/passwd	      personal identification
       /etc/printcap	      printer capabilities data base
       /usr/lib/lpd*	      line printer daemons
       /usr/spool/*	      directories used for spooling
       /usr/spool/*/cf*       daemon control files
       /usr/spool/*/df*       data files specified in cf files
       /usr/spool/*/tf*       temporary copies of cf files

See Also
       lpq(1), lpr(1), lprm(1), pr(1), symlink(2), printcap(2), lpc(8), lpd(8)

																	     lp(1)
All times are GMT -4. The time now is 01:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy