Sponsored Content
Full Discussion: Printer set and format?
Operating Systems Solaris Printer set and format? Post 41273 by hassan2 on Wednesday 1st of October 2003 04:59:12 PM
Old 10-01-2003
Data

this seems like a mis configured print filter on your sun machine.
what you need to do instead is configure your solaris machine to
be its own print server for the printer, so the solaris interface script will send the right format to the printer
Do the following:

lpadmin -x printer_name
lpadmin -p printer_name -v /dev/null -m netstandard
lpadmin -p printer_name -T unknown -I any
lpadmin -p printer_name -o protocol=tcp -o dest=printer_ipaddres:9100
/usr/bin/enable printer_name
/usr/sbin/accept printer_name

Note:
printer_name will be the name of your printer while printer_ipaddress is the ip address of your printer.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

set up HP printer in Sun Solaris 2.8

Is there any documentation as to how to set up/register a printer in Sun Solaris server? Thanks in advance. (1 Reply)
Discussion started by: simt
1 Replies

2. Shell Programming and Scripting

Set format to text

Hello, Im using a terminal that can configure colors and backgrounds for determinate text with format, but.... how i can put format to some text? For example, i use: echo "Hello my friend" but i want as output Hello my friend the colors will be configured in the terminal but how i... (3 Replies)
Discussion started by: Lestat
3 Replies

3. UNIX for Advanced & Expert Users

How to set up dummy printer on UNIX

Hi, I work at IT department of a home furnishing company in Canada. Presently we are working on printer issue on UNIX system and we like to set up a dummy printer on the system. We are not much sure about the procedure to try it and it woul dbe great if we get some advice to go ahead. Thanks... (3 Replies)
Discussion started by: srabanti
3 Replies

4. AIX

Can you set up a networked printer as a local print queue?

Fairly simple question, I think. Still trying to get my head around AIX print queues. Most of our problems seem to stem from print queues going down. This generates help-desk calls when users call up to get their queues started or to get rid of the emails that qdaemon sends them. Looking at... (0 Replies)
Discussion started by: alexop
0 Replies

5. AIX

Unable to set remote printer in AIX

Hi all, I am a beginner in AIX. I am facing a problem with remote printing in AIX. HP laser jet 1320 printer is connected to a printer server (PCI Mini - 100U3), which is configured as remote printer from AIX server. But I am not able to print from the AIX server by using "lp -d... (0 Replies)
Discussion started by: Rainy
0 Replies

6. UNIX for Dummies Questions & Answers

How do i set time in 24 hour format?

Currently whenever i run date command output is shown like Mon Apr 12 05:17:21 IST 2010 When its 17:17 Here. How would i change it so that it should show. Mon Apr 12 17:17:21 IST 2010 (8 Replies)
Discussion started by: pinga123
8 Replies

7. SCO

How to set up a printer on SCO 5

1. Does all the man pr commands work as expected on SCO 5? 2. Do I have to do some special printer setup to connect the printer to the server before trying to print? Thanks - Much. (1 Reply)
Discussion started by: ggats11
1 Replies

8. Shell Programming and Scripting

Sed/awk command to convert number occurances into date format and club a set of lines

Hi, I have been stuck in this requirement where my file contains the below format. 20150812170500846959990854-25383-8.0.0 "ABC Report" hp96880 "4952" 20150812170501846959990854-25383-8.0.0 End of run 20150812060132846959990854-20495-8.0.0 "XYZ Report" vg76452 "1006962188"... (6 Replies)
Discussion started by: Chinmaya Kabi
6 Replies

9. AIX

How do I set up a Zebra Printer on AIX?

Hi All We have a Zebra LP 2824 that we are wanting to use to print mailing labels from our AIX 7.1 server. We have around 350 printers of various types and manufactures already installed and functioning so, we don't want to install CUPS. I can get the printer to print using Line Mode but,... (3 Replies)
Discussion started by: DLooney
3 Replies
DtPrintFillSetupData(library call)										DtPrintFillSetupData(library call)

NAME
DtPrintFillSetupData -- obtains X printer connection information SYNOPSIS
#include <Print.h> XtEnum DtPrintFillSetupData( Widget wid, DtPrintSetupData* print_data); DESCRIPTION
The DtPrintFillSetupData function obtains an X printer connection in order to initiate an X printing job in situations other than direct interaction with a DtPrintSetupBox. Examples of such situations include a "quick print" button on a toolbar and "GUI-less" printing. This X printer connection information can be obtained from an existing DtPrintSetupBox widget instance, or if a DtPrintSetupBox widget instance is unavailable, DtPrintFillSetupData will provide a new X printer connection. A print job is typically initiated when the user selects the "Print" button from within a DtPrintSetupBox widget instance. Applications may wish to provide additional avenues for the user to initiate a print job, namely a "Quick Print" toolbar button, or a command line parameter to allow "GUI-less" printing, such as from within a desktop action. DtPrintFillSetupData is designed to provide an X printer connection in a manner consistent with DtPrintSetupBox. For both the "Quick Print" and "GUI-less" cases, the caller may set the printer_name element of the passed print_data in order to specify the destination X printer. DtPrintFillSetupData will treat the passed printer_name as if the user had typed the printer name into the Printer Name text field of the DtPrintSetupBox. The printer_name will be verified, and an X printer connection will be established. The returned printer_name may be a fully qualified version of the passed printer_name as a result of the printer verification process. For a description of this process, see the DtNverifyPrinterProc resource description in DtPrintSetupBox(3). If DtPrintFillSetupData returns a new printer_name, it will free the passed printer_name by calling XtFree. For the "Quick Print" button case, DtPrintFillSetupData is intended to be used with an existing DtPrintSetupBox instance, so that the "Quick Print" button behaves as if the user had brought up a DtPrintSetupBox, selected a printer as indicated by printer_name, and acti- vated the "Print" button. The following conditions apply to this case: o The wid parameter should be set to the widget ID of the DtPrintSetupBox instance. DtPrintFillSetupData will fill the passed print_data structure similarly to how DtPrintSetupBox fills out the print_data element of the DtPrintSetupCallbackStruct passed as call data to the DtNprintCallback list. The only exception is that when using DtPrintFillSetupData it is the caller's responsibility to free the allocated memory locations pointed to by the print_data structure by calling DtPrintFreeSetupData. o The X printer connection returned is managed by the DtPrintSetupBox. The caller should not destroy the print context, nor close the print display connection. o The DtPrintSetupBox widget instance passed via wid does not have to have been managed prior to calling DtPrintFillSetupData. o If the passed printer_name is NULL, the current printer as indicated by the DtNprinterName resource will be used, and returned in printer_name. If the passed printer_name is a different printer than indicated by the current value of the DtNprinterName resource, the resource will be updated. o The destination and dest_info elements of the passed print_data will be set according to the current state of the passed DtPrintSe- tupBox. If dest_info is set when passed to DtPrintFillSetupData, DtPrintFillSetupData will free the memory by calling XtFree if it decides to update If dest_info. o If a connection cannot be established, the DtPrintSetupBox will automatically be managed, displaying an error message box. After dis- missing the message box, the user can select a new printer and restart the print operation, if desired. For the "GUI-less" case, DtPrintFillSetupData is intended to provide an X printer connection, in a manner consistent with an X printer con- nection established by DtPrintSetupBox, without actually creating a DtPrintSetupBox. The following conditions apply to this case: o The passed wid must be set to NULL. o The X printer connection returned is managed by the caller, which means that the caller must destroy the print context (via XpDe- stroyContext) and close the print display connection (via XCloseDisplay). o If printer_name is set to NULL, DtPrintFillSetupData will determine a default printer, using the same procedure as DtPrintSetupBox, and set the printer_name field to this default printer name upon return. o The destination and dest_info elements of the passed print_data structure will be ignored by DtPrintFillSetupData. o The caller can free the allocated memory locations pointed to by the returned print_data structure by calling DtPrintFreeSetupData. ARGUMENTS
wid The widget ID of a DtPrintSetupBox or NULL, if no DtPrintSetupBox is available. print_data A pointer to an existing DtPrintSetupData structure that DtPrintFillSetupData will update with valid X printer connection infor- mation. See DtPrintSetupBox(3) for the definition of the DtPrintSetupData structure. RETURN VALUE
DtPRINT_SUCCESS The X printer connection was successfully obtained. DtPRINT_INVALID_DISPLAY The indicated X print server could not be found. DtPRINT_NOT_XP_DISPLAY The indicated X server does not support the X Printing Extension. DtPRINT_NO_PRINTER The indicated printer could not be found on the X print server, or a default printer could not be determined. DtPRINT_BAD_PARM The value passed for print_data is NULL, or the value of the DtNprintSetupMode resource for wid is not DtPRINT_SETUP_XP. ENVIRONMENT VARIABLES
None. RESOURCES
None. ACTIONS
/MESSAGES None. ERRORS
/WARNINGS None. EXAMPLES
None. FILES
None. SEE ALSO
DtPrintCopySetupData(3), DtPrintSetupBox(3), DtPrintFreeSetupData(3) DtPrintFillSetupData(library call)
All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy