Thanks for the speedy response. I'll go through my code and amend the unterminated if/elif statments first - am I correct in thinking I'll simply need to add the second fi in after the last elif? Eg:
If I'm wrong, apologies. I never thought of using select in all honesty, I (at least thought I) knew the if, so I decided to stick in my comfort zone. If it would make more sense using select, I'll look into that.
What do you mean by an options file? Sorry if I'm a bit slow.
I want to use my linux box as a print server for my hp printer. I downloaded the linux driver for the printer and installed it. I also configured CUPS and printed a test page with it. Samba is allowing my windows machine to see and install the printer, but when i try to print to it, nothing... (1 Reply)
I keep getting a access denied error when I install from the XP wizard my Linux shared printer.
CUPS CONFIGURATION FILE
<Location /admin>
#
# You definitely will want to limit access to the administration functions.
# The default configuration requires a local connection from a user who
#... (2 Replies)
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
Hi all,
I am currently working on building a GUI to be interfaced with CUPS 1.3.4 package; In my GUI I have a list of printer manufacturers mapped
With various printer models ; and for a particular printer model selected I needed to know how to map that model with an Appropriate ppd file; as I... (0 Replies)
I want to make a script to automate printer adding task.My inputs are like
Printer name : xyz
Port number :9001
I should write a script to make the Printer adding task will be automated.
Like in manually adding task we are doing through hppi or jetadmin tools.
---------- Post updated at... (2 Replies)
Just got an HP OfficeJet L7680 printer but there are no drivers for it in RHEL5. I just want to add the single driver without installing hplip 3.9.8. It's going to be connected with USB. Is this possible and if so how? (1 Reply)
I have a RHEL 4 (probably not important, but whatever) machine with a few dozen network printers set up in CUPS. I would like to replicate this on a second machine.
With lpinfo I'm able to get the queue name and device information (socket://ipaddress or whatnot), but I haven't get figured out... (0 Replies)
Hi,
I am running Linux box with
samba-3.0.33
cups-1.3.7
When I access my home folder through windows and give user credentials, it works well but shows all the printers icons as well.
I would like to hide them all from users. I tried changing Browsing On to Browsing Off in... (1 Reply)
Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies
LEARN ABOUT DEBIAN
xpgetpagedimensions
XpGetPageDimensions(3Xp) XPRINT FUNCTIONS XpGetPageDimensions(3Xp)NAME
XpGetPageDimensions - Gets the page dimensions for the current printer settings.
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
Status XpGetPageDimensions ( display, print_context, width, height, reproducible_area )
Display *display;
XPContext print_context;
unsigned short *width;
unsigned short *height;
XRectangle *reproducible_area;
ARGUMENTS
display
Specifies a pointer to the Display structure; returned from XOpenDisplay.
print_context
A pre-existing print context.
width Returns the pixel width of the page currently selected in the print context.
height Returns the pixel height of the page currently selected in the print context.
reproducible_area
Returns the net reproducible area of the page currently selected in the print context, expressed in pixel offsets and dimensions.
DESCRIPTION
XpGetPageDimensions considers the medium currently selected in the print context (derived in part from default-medium, default-input-tray,
input-trays-medium, content-orientation, default-resolution), and returns the total width and height of the page in pixels, and the net
reproducible area within the total width and height. The net reproducible area is the portion of the page on which the printer is physi-
cally capable of placing ink.
XpGetPageDimensions returns a Status of 0 on failure, or 1 on success.
DIAGNOSTICS
XPBadContext A valid print context-id has not been set prior to making this call.
X Version 11 libXp 1.0.0 XpGetPageDimensions(3Xp)