home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!concert!duke!news.duke.edu!panda.mc.duke.edu
- From: dave@panda.mc.duke.edu (Dave Hoffman -- rjj)
- Newsgroups: comp.sys.sun.admin
- Subject: Re: Printing from Mac to Sun - NewsPrint 2.0
- Message-ID: <4853@news.duke.edu>
- Date: 25 Aug 92 17:15:31 GMT
- References: <JC.92Aug24203720@albatross.bu.edu>
- Sender: news@news.duke.edu
- Organization: Duke University, Nuclear Medicine
- Lines: 60
- Nntp-Posting-Host: panda.mc.duke.edu
-
- In article <JC.92Aug24203720@albatross.bu.edu> jc@raven.bu.edu (James F. Cameron) writes:
- >
- >Question: What is the best solution to print from the Mac to the
- > SparcPrinter? What solutions are available in general?
- >
- > Basically, I simply want a user to choose "Print" and have
- > it sent over to the SparcPrinter without any other steps.
- > Since I am a complete novice when it comes to Macs, I am
- > asking the net for this info.
- >
-
- Here's how I do it. It's not as simple as you'd like, but it works:
-
- Choose "Print" from the File menu. If you're using System 7, you select
- the PostScript File radio button in the LaserWriter dialog box, then hit
- the Print button. You will be prompted for a name for the file. I take
- the default "Postscript", in a folder called "SPARCprinter Folder." You
- will need to have a Control Panel called Trimmer (available from sumex)
- in your System/Control Panels folder.
-
- Then, on the Sun end, I run the following script:
-
- #! /bin/sh
- # print_mac_files
- echo Checking mac ...
- ftp < /usr/local/bin/ftpprint > /dev/null
- for file in /tmp/mac_print_queue/*
- do
- if [ -f $file ]
- then
- echo Printing $file
- /usr/local/bin/macps $file | lpr
- rm -f $file
- else
- echo Nothing to Print!
- fi
- done
- #####################################################
-
- ######################################################
- # ftpprint
- open mac
- prompt
- cd "SPARCprinter Folder"
- lcd /tmp/mac_print_queue
- mget *
- mdelete *
- quit
- #####################################################
-
- The program macps is available on sumex as well.
- I tried running print_mac_files as a cron job, but
- the ftp to the mac ties up the mac, so I settled on
- making the user run print_mac_files manually. It's
- not bad if you put it on a pull-down menu.
-
- Good luck!
-
- -Dave
- (email replies to dhoffman%lunis.dnet@lucpum.it.luc.edu)
-