How do I send my job to the printer?
To print your text
document (your program source or other text), you can use the lp
command. If you don't already have a localhost window open, open one (by
choosing "localhost" from the Systems menu of the Toolchest).
Let's say you want to print a program file called program1.c,
then you would type the following line at the command prompt:
lp -dhp5si-ad-204 program1.c
If you find it
tedious to have to type in -dhp5si-ad-204 everytime
you want to print something, here is what you can do. Set up a default
printer. Do this by adding the following line to your .cshrc:
setenv LPDEST hp5si-ad-204
Then log out and
log in again. From now on you don't have to add the -dhp5si-ad-204
option to your lp command.
If
you are unable to use the "lp" command to print your job (for
various reasons) from your localhost window, here is an easy fix:
- Cancel your old
print jobs(if any): Type "lpstat
-o" (without
the quotes) at the command line to find your print job ID. For example,
if the output from the lpstat command
looks like
hp5si-ad-204-1207 csckzp 6284 Mar 3 09:43
on hp5si-ad-204
then
hp5si-ad-204-1207 is your print job ID. Now terminate
the job using the cancel command. For example,
to cancel the print job above, you would type
cancel hp5si-ad-204-1207
- Open a "magic"
window from the "Systems" menu of the Toolchest. Now, use the
"lp" command as you normally would to submit your print job from
there.
- If you are unable
to print from Netscape, here are two alternative fixes:
- Press "Alt-P"
to bring up the print dialog box. In the dialog box, choose the option
to "Print to file" and then click the Print button. This will
create a "netscape.ps" file in you home directory. Use the "lp"
command from "magic" (as above) to send the "netscape.ps"
to the printer. Remember to delete the netscape.ps file when you are done
printing. Also, remember to set the "Print to" option to "Printer"
the next time you use Netscape to print a document.
- Kill your Netscape
window. Start a "magic" session from the Toolchest Systems menu.
Type "netscape" at the command line to start up Netscape and
then print your document. Make sure that you add the following extension
to the "Print command" text field: -dhp5si-ad-204