06-19-2003
The link does provide an answer (from what I'm reading).
Quote:
Problem Solution description :
In a nutshell , the problem was ultimately solved firstly by using the interface script /usr/lib/hpnp/hpnpIS.model as a default interface and then adding the printer. Then , the new script in /etc/lp/interfaces was amended slightly so as to use the landscape mode as the default.
At line 314 of the /etc/lp/interfaces/[printer] script there should be a CASE statement that handles the control codes that get sent to the printer based on the required mode of printing.
314 case "$orientation" in
315 landscape)
316 echo "\033&l1O\c"
317 ;;
318
319 *)
3 echo "\033&l0O\c"
321 ;;
322 esac
I solved the problem by setting the landscape option as the default. Remove the line 3 and add a copy of the line of code at 316. This was necessary to do because currently the script , like many others , sets landscape or portrait options based on what the user specifies on the command line using 'lp'. What is not mentioned in most existing hardcopy SCO documentations is that Even although you do NOT need filters to print in landscape mode , a filter defined by the UNIX command 'lpfilter' needs to be associated with the relevant printer if you are going to use the '-y landscape' or equivalent option to the lp command. If you try to use the '-y landscape' option with the lp command for a printer that does not have a filter , you will get the following error message :
# lp -d hotkey -y landscape /etc/hosts
UX:lp: ERROR: There is no filter to convert the file content.
UX:lp: TO FIX: Use the lpstat -p -l command to find a
printer that can handle the file type
directly, or consult with your system
administrator.
#
Because of this , the solution you have outlined in /SCOFAQ/scotec7.html#defaults will not work if the printer does not have a filter , at least in UW7 systems ; I cannot vouch for others.
And this seems to be supported by the referenced Technical Article found at SCO (
TA111121 which has step by step instruction.
(FYI - I can only assume this will work in your environment - I don't have a SCO box to do testing on)
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi guys ...
i need ur help with some printing problem in unix ...
first prob. :
i wanna print from my NCR unix to an Win NT , Ip based printing server ( HP JetDirect ) .
My issue , is it possible to print directly to an Ip address from unix ?
How do i make it work to get any results ?... (3 Replies)
Discussion started by: QuickSilver
3 Replies
2. SCO
Hello,
I am having performance problem when , i ported a c code from Unixware 2.1 to Unixware 7.0.0.
My program establishes a synchornous connection with the client in a windows OS and then sends and receives messsages using the recv and send calls.
What i hyave noticed is that after a... (0 Replies)
Discussion started by: Amith
0 Replies
3. UNIX for Dummies Questions & Answers
msg:
vfs_mountroot:cannot mount root
%%%%%%
system don't start (0 Replies)
Discussion started by: hushboy
0 Replies
4. SCO
Dear All,
I have a HP Netserver LH3 server which has unixware 7 os with oracle. Suddenly it shows a error message that " Raw Stack Dump beigns at 0xFFFDABIC...
Generating Selective dump
Storing system memory image for crash analysis....
#scanning memory....dumping to disk
(Press any key to... (0 Replies)
Discussion started by: mr.chiranjib
0 Replies
5. SCO
High,
I have a simulator application running on unixware 2.1, there are no original installation CDs for the application. is it possible to copy directories and configuration files, related to the installed application, from unixware 2.1 to other system running Unixware 7.1.1 (replacing Unixware... (0 Replies)
Discussion started by: fareedah
0 Replies
6. SCO
I want to install unixware 7.1.1 on a server which does not have a on board floppy drive. I have got a USB floppy drive. Can anybody please help me...how could I provide HBA disk using this USB floppy drive???? (0 Replies)
Discussion started by: siddhartha7m
0 Replies
7. News, Links, Events and Announcements
So, I was browsing groklaw.net, and I was surprised to read that Pamela Jones was reading the copyright notices in the UnixWare 7.1.1 source code files...
Groklaw - Santa Cruz Listed Novell as Owning the Copyrights in 1999
How can that be? Are the UnixWare 7.1.1 sources available to the... (1 Reply)
Discussion started by: pepinox
1 Replies
8. SCO
Hi,
I need help, one of our servers is down, and all data in that Server are critical:
The Scenario:
-------------
I have a computer with the next architecture:
architecture=IA32
bus_types=PCI2.10,ISA,PnP1.0
hostname=xxx.xxx.xxx (the real name is hidden)
hw_provider=Generic AT... (2 Replies)
Discussion started by: danilosevilla
2 Replies
9. Windows & DOS: Issues & Discussions
We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies
10. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
LEARN ABOUT DEBIAN
business::onlinepayment::paymentech
Business::OnlinePayment::PaymenTech(3pm) User Contributed Perl Documentation Business::OnlinePayment::PaymenTech(3pm)
NAME
Business::OnlinePayment::PaymenTech - Chase Paymentech backend for Business::OnlinePayment
SYNOPSIS
$trans = new Business::OnlinePayment('PaymenTech',
merchant_id => "000111222333",
terminal_id => "001",
currency => "USD", # CAD, MXN
);
$trans->content(
login => "login",
password => "password",
type => "CC",
card_number => "5500000000000004",
expiration => "0211",
address => "123 Anystreet",
city => "Sacramento",
zip => "95824",
action => "Normal Authorization",
amount => "24.99",
);
$trans->submit;
if($trans->is_approved) {
print "Approved: ".$trans->authorization;
} else {
print "Failed: ".$trans->error_message;
}
NOTES
Electronic check processing and recurring billing are not yet supported.
AUTHOR
Mark Wells, mark@freeside.biz
SEE ALSO
perl(1). Business::OnlinePayment.
perl v5.10.1 2010-10-11 Business::OnlinePayment::PaymenTech(3pm)