Solved

Auto-sending of file to a printer?

Posted on 1998-04-20
5
240 Views
Last Modified: 2013-12-27
Here's a unique situation.  We are using Sun Sparcs and some PC's with Win95 and Solstice Network Client 3.1+.  I am told the Network Client no longer supports DOS based program printing.  On our other DOS workstation we use PC-NFS software which we can print to network mounted printer.
Concerning the Win95 installations, knowing that we can change our custom apps to print to a file on one of the servers, Is there a way to automatically have this file sent to a printer?  a FIFO file or directory comes to mind from my readings way back when.  Or is they any other way to set up a special directory to forward the incoming files.  I know cron can do this but i would like for this to be instantaneous rather than waiting for cron to roll around.
Thanks.
0
Comment
Question by:j_k
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:António Sargento
ID: 2006325
Once I solve a similar problem inthe following way:
I launch a pinter daemon on the PC (I was using the Pc-Xware and in this package exists a Unix like printer daemon) and configure a printer in Sun Solaris as a network printer. Then when I sent a file to this printer, automatically, this file was sent to the PC and printed there.
I hope that this helps you.
0
 
LVL 2

Expert Comment

by:frederico
ID: 2006326
If you look at
http://www.sun.com/netclient/demo/m22.htm
you will notice that the Solstice Network Client supports Print Server
so you are able to set up a printer in the Unix side that will print to you windows printer.
as you say you can set up you application to print to the unix server this will be easy to do.

Best

Frederico Fonseca
0
 

Author Comment

by:j_k
ID: 2006327
frederico,
This is not a Windows Printer.  The current network printer has it's own IP and is spooled from a sun box.  I need to be able to print from a DOS application on a Win95 client with the Solstice network client 3.2.  But, after installing and calling support, I was told that printing from a dos windows is not supported anymore.  Previous versions did allow to mount a network printer and map it to a local lpt port that was redirected via the network software out to the spooling sun box.  So my idea was to modify the dos app to print to a file on a mounted drive of the server.  Manually, we would then telnet in and send the file to the printer from the unix environment.  And that is whem i remembered someting about a "fifo" file.  And i wondered if that could be used to to automatically pass the printed file into the spooling process?

0
 
LVL 2

Accepted Solution

by:
frederico earned 50 total points
ID: 2006328
First - Setup an LPD printer un the Unix Server.
example 1
    setup a windows remote printer using the lpr protocol.
    capture the "lpt1"port  to use this printer. (for example)

Example 2
look at
http://shadowland.hf.utexas.edu/www/acitslpr.htm
Download the product.
setup a windows printer using the lpr protocol.
setup your aplication to create a file instead of printing to a printer.
setup your aplication to call the program "acitslpr" to print the file to the printer.

There are other ways.
I think that Solstice client is able to do this also. Try to look at the lpd/lpr protocol
instead of the Nfs protocol. You do not need to mount the printer.

0
 

Author Comment

by:j_k
ID: 2006329
Still thinking on this one, I haven't had much time to play with this.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question