All
Please help to provide "goto" functionality in KORN shell script.
ex:
1: Command
Process some command
if check some variable
true
goto 1
else
process some other
Please help to implement this example in korne... (1 Reply)
is there any way to format a file by just removing first line and last line from the file.
my file is like
test.txt
12may2004,20may2004,A
123,SCOTT,TIGER,,,,12,12-MAY-2006
124,TIGER,SCOTT,,,,,,,
....
...
163,cscssaa,abc,,,,12,12-MAY-2006
END
my requirement is to produce the same file... (1 Reply)
Hi Everyone,
I have tried with the following Code for each of the following, but that does not seem to serve the purpose. Can someone give some pointers please.
1) A Korne Shell which asks the user to enter the name of a file when searching it
recursively (using the find command) in the... (3 Replies)
I am new to Korne Shell Scripting. Can someone help me with a Korne Shell which asks the user :-
1) to enter the name of a file when searching it recursively (using the find
command) in the home directory of this user.
2) for a date (format AAMMJJ) and a directory and then searches ... (4 Replies)
I am trying to write a Korne Shell asking the user for a date and a directory and then search recursively in this directory the list of files modified after the date chosen. But I am not getting good results when I Test it...
#!/usr/bin/ksh
echo "Enter a date (YYYYMMDD) "
read date
touch -t... (2 Replies)
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Request if some one could provide me shell script that converts the below "input file" to "CSV format file" given
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- ----- ---------------------------------... (7 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
LEARN ABOUT DEBIAN
vend::payment::itransact
Vend::Payment::iTransact(3pm) User Contributed Perl Documentation Vend::Payment::iTransact(3pm)NAME
Vend::Payment::iTransact - Interchange iTransact Support
SYNOPSIS
&charge=itransact
or
[charge mode=itransact param1=value1 param2=value2]
PREREQUISITES
Net::SSLeay
or
LWP::UserAgent and Crypt::SSLeay
Only one of these need be present and working.
DESCRIPTION
The Vend::Payment::iTransact module implements the itransact() routine for use with Interchange. It is compatible on a call level with the
other Interchange payment modules.
To enable this module, place this directive in "interchange.cfg":
Require module Vend::Payment::iTransact
This must be in interchange.cfg or a file included from it.
Make sure CreditCardAuto is off (default in Interchange demos).
The mode can be named anything, but the "gateway" parameter must be set to "itransact". To make it the default payment gateway for all
credit card transactions in a specific catalog, you can set in "catalog.cfg":
Variable MV_PAYMENT_MODE itransact
It uses several of the standard settings from Interchange payment. Any time we speak of a setting, it is obtained either first from the
tag/call options, then from an Interchange order Route named for the mode, then finally a default global payment variable, For example, the
"id" parameter would be specified by:
[charge mode=itransact id=YouriTransact]
or
Route itransact id YouriTransactID
or
Variable MV_PAYMENT_ID YouriTransactID
The active settings are:
id Your iTransact account ID, supplied by iTransact when you sign up. Global parameter is MV_PAYMENT_ID.
home_page
The internet address of your site. Defaults to "http://__SERVER_NAME__" if not set. Global parameter is MV_PAYMENT_HOME_PAGE.
remap
This remaps the form variable names to the ones needed by iTransact. See the "Payment Settings" heading in the Interchange
documentation for use.
Troubleshooting
Try the instructions above, then enable test mode. A test order should complete.
Then move to live mode and try a sale with the card number "4111 1111 1111 1111" and a valid expiration date. The sale should be denied,
and the reason should be in [data session payment_error].
If nothing works:
o Make sure you "Require"d the module in interchange.cfg:
Require module Vend::Payment::iTransact
o Make sure either Net::SSLeay or Crypt::SSLeay and LWP::UserAgent are installed and working. You can test to see whether your Perl
thinks they are:
perl -MNet::SSLeay -e 'print "It works
"'
or
perl -MLWP::UserAgent -MCrypt::SSLeay -e 'print "It works
"'
If either one prints "It works." and returns to the prompt you should be OK (presuming they are in working order otherwise).
o Check the error logs, both catalog and global.
o Make sure you set your account ID properly.
o Try an order, then put this code in a page:
<XMP>
[calc]
my $string = $Tag->uneval( { ref => $Session->{payment_result} });
$string =~ s/{/{
/;
$string =~ s/,/,
/g;
return $string;
[/calc]
</XMP>
That should show what happened.
o If all else fails, consultants are available to help with integration for a fee. See http://www.icdevgroup.org/
BUGS
There is actually nothing *in* Vend::Payment::iTransact. It changes packages to Vend::Payment and places things there.
AUTHORS
Mark Johnson and Cameron Prince, based on original code by Mike Heins.
perl v5.14.2 2011-03-09 Vend::Payment::iTransact(3pm)