on 07-13-2010 9:54 AM
Hi SDNers,
I have a Java API for syndication process.
The requirement is to call the Java API from a Unix script.
If anyone has worked in this, please suggest... in details.
Thanks,
Priti
Hi,
An API stands for Application Programming Interface... and Unix Script is a Scripting language.
Only way to call an action that is supported by an API is first to create a small executable an Java Program that uses this API.
Compile it (with javac) and then you can call this java program in a script using the command "java MyProgram <optional parameters>".
Good luck,
Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Benjamin,
Thanks for the reply.
To be more clear of the requirement:
I have to run this Java API for syndication, once in a month. Therefore write a Unix script to call the Java API. And the Unix script will be triggered by a external scheduler tool.
Any suggestions for this or any other workaround for it.
Thanks,
Priti
Hi,
I understood, what you want is:
1. Scheduler --> 2. Script --> 3. API --> 4. run Syndication
But as I try to explain this is not possible, you cannot call an API from a Script directly, therefore your flow need to be:
1. Scheduler --> 2. Script --> 3a. Java application/program --> 3b. API --> 4. run Syndication
So in other words the API on itself cannot do anything unless you call it by programming/code created in Java.
Hope this more clear now.
B
Thanks Benjamin!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.