This is my first ever posting, so please be gentle with me
I'm trying to write a script in HP-UX which outputs text in different colours, but although I can get the script to output different colours to the screen, I can't get it to write different colours to a file. Take the following example:
When I run it from my terminal, it outputs:
where the first line is green, and the second is blue.
The testlogfile.txt, however, shows:
with no colours.
Any chance you might change the icon's that indicate New/No New Posts in the forum. For those who suffer colour blindness of varrying degrees it has become a bit of a problem (myself included) with the new colour scheme.
Cheers,
Cameron (4 Replies)
There has been a previous question about displaying text in different colours using a script in Bourne - this doesn't seem to work the same for Korn...
Is it possible to display text in different colours when using the Korn shell or am I doing it wrong? (3 Replies)
Hi,
I need to set the background colors for cygwin console, when I do ssh to production boxes.
This should be done through commands..
Please suggest me asap.
Thanks in advance. (3 Replies)
Can any one tell me how to change the screen colors of the screen when connected unix using putty. I tryed setting from colors but it's not happening (2 Replies)
I have information in a file called HITS. This file has been populated by the user entering search criteria.
the HITS file contains information:
filname.hits: 123.33.345.66 Fri Nov 26 11.45.56.43 GMT 2006
at the moment i am just displayin the information using cat HITS.
... (3 Replies)
Hi!
I am a newbie to Unix. I was writing a little game program for fun when thought of an idea to allow data to be saved. I knew to take all of the Predefined variables and put them into a separate file, then including the file in the program. But I am having trouble making it so that the user... (0 Replies)
Hi all,
In my script output, I want to print a line with blue colour, if the condition is satisfied, otherwise it should print with red colour. Can anyone please help me on the same requirment.
Thank You.
Regards,
Raghu. (1 Reply)
Hi,
I have set the following piece of code in .vimrc file.
================================================
if has("terminfo")
let &t_Co=16
let &t_AB="\<Esc>
=================================================
unable to understand the significance of certain things. This sets the colour... (4 Replies)
Hi all - just started using Linux Mint 17 and I need to change the Foreground & Background Colours for the Terminal, my eyesight is not what it used to be many years ago, so any help would be much appreciated.
Regards
Malcolm (6 Replies)
Discussion started by: electrocad
6 Replies
LEARN ABOUT DEBIAN
business::paypal::api::authorizationrequest
Business::PayPal::API::AuthorizationRequest(3pm) User Contributed Perl Documentation Business::PayPal::API::AuthorizationRequest(3pm)NAME
Business::PayPal::API::AuthorizationRequest - PayPal AuthorizationRequest API
SYNOPSIS
use Business::PayPal::API::AuthorizationRequest;
## see Business::PayPal::API documentation for parameters
my $pp = new Business::PayPal::API::DoAuthorizationRequest ( ... );
my %response = $pp->DoAuthorizationRequest (
TransactionID => $transid,
CurrencyID => $currencyID,
Amount => $amout,
);
DESCRIPTION
Business::PayPal::API::AuthorizationRequest implements PayPal's AuthorizationRequest API using SOAP::Lite to make direct API calls to
PayPal's SOAP API server. It also implements support for testing via PayPal's sandbox. Please see Business::PayPal::API for details on
using the PayPal sandbox. This request is only used with "Order" type Authorizations. An "Order" must first be placed using the
ExpressCheckout module. DirectPayment authorizations can only be used for "Basic" authorizations.
AuthorizationRequest
Implements PayPal's AuthorizationRequest API call. Supported parameters include:
TransactionID
Amount
currencyID (defaults to 'USD' if not supplied)
as described in the PayPal "Web Services API Reference" document. The default currencyID setting is 'USD' if not otherwise specified.
Returns a hash containing the results of the transaction.
Example:
my %resp = $pp->DoAuthorizationRequest (
TransactionID => $trans_id,
Amount => '15.00',
);
unless( $resp{Ack} ne 'Success' ) {
for my $error ( @{$response{Errors}} ) {
warn "Error: " . $error->{LongMessage} . "
";
}
}
ERROR HANDLING
See the ERROR HANDLING section of Business::PayPal::API for information on handling errors.
EXPORT
None by default.
SEE ALSO
<https://developer.paypal.com/en_US/pdf/PP_APIReference.pdf>
AUTHOR
Danny Hembree <danny@dynamical.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Danny Hembree
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.
perl v5.14.2 2009-12-07 Business::PayPal::API::AuthorizationRequest(3pm)