Solved

Auto-sending of file to a printer?

Posted on 1998-04-20
5
237 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
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.:

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now