Solved

Auto-sending of file to a printer?

Posted on 1998-04-20
5
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

691 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