Hello, On Apr 20 05:18 Sankara Narayanan wrote (shortened):
I am using LPRng for printing. What my problem is that the spooler spools the enitre file and then starts printing but i need the printer to start printing while the spooling is going on.
As far as I know this is not possible. But there are so many options for LPRng that I am not sure. Read carefully the LPRng howto which matches to your particular Suse Linux version: file:///usr/share/doc/packages/lprng/LPRng-HOWTO.html Why do you need the printer to start printing while the spooling is going on? In general this is not possible because what should happen when several jobs should be printed at the same time? It is the intrinsic idea of "spooling" that the spooling system seperates job submission from job processing - i.e.: 1. The user submits a job with "lpr" to the spooling system. 2. The spooling system does not process the job but it only stores it in its spooling directory. 3. When the job was completely stored in the spooling directory "lpr" is finished and the user can continue without having to wait until the job is finally printed (the job may have to wait a longer time because other jobs are in the queue). 4. Now another process (lpd worker) is started which does the job processing (i.e. filtering and sending the result to the printer). 5. When a job was completely processed then it is removed from the spooling directory or kept in the spooling directory (depending on what was configured for the particular queue). 6. While 4. and 5. is going on the user can query what has happened with the job by using "lpq". Perhaps the "Job Filtering By LPR" may be a workaround for what you want - see the LPRng howto: -------------------------------------------------------------------- The lpr_bounce flag, if present in the printcap entry, will force lpr to process the job using the specified filters and send the outputs of the filters to the remote printer for further processing. -------------------------------------------------------------------- This way the lpr program does all what is needed to process a job. In fact this is job processing without spooling so that the lpr program would "hang" until the job is finally printed. Regards Johannes Meixner -- SUSE LINUX AG, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/