|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr. The output of API will be like : Code:
<usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false" realtimeSbscrpShared="false" bonusFlag="false" inclUnitsRolledOver="0.00" maxRolloverUnits="0.00" inclUnitsToBeRolledOver="0.00" rolloverAvailableFlag="false" prevCycleReleasedFlag="false" sbscrpUsedUnits="729.00"> and I need to fetch the marked fields from the output. Can anyone help me how to acheive this in shell scripting...I have no idea of how to run an API from a shell script
|
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
An API is basically a code library, written in some language like C and then presented as some kind of an object for other compiled languages to use.
bash is not a compiled language. You will have to write some kind of wrapper in C or java or whatever the api is meant to interface with. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| API in C for compress (.Z) ? | domiq44 | Programming | 4 | 02-01-2011 08:22 PM |
| How to use getdiskbyname() API | alert0919 | HP-UX | 0 | 02-15-2009 01:15 AM |
| shell / bash / script api ? | Turrican | Shell Programming and Scripting | 5 | 12-11-2008 04:39 PM |
| API question | q30 | AIX | 0 | 08-02-2004 04:03 AM |
|
|