LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2005, 09:19 PM   #1
treotan
Member
 
Registered: Jun 2004
Posts: 126

Rep: Reputation: 15
Shell Script call API


For example if i need call the request from:
http://www.XXXX.com/openapi/api?username=<$U>&password=<$P>&requestMode=<$M>&requestID=<$ID>&msgType=<$T>

Can the shell script be do for it? If it can't work, I only use java.

Thks
 
Old 08-22-2005, 10:59 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
It can be done, but depending on what you plan to
do with it and how often it will be used would be the
deciding factor to use Java or not.

Code:
#!/bin/sh

SITE=www.linuxquestions.org
THREAD=355654
DIR=LQ.$THREAD

mkdir $DIR
cd $DIR

wget http://$SITE/questions/showthread.php?s=\&threadid=$THREAD
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script access API treotan Linux - General 1 08-22-2005 10:48 AM
call a c program in a shell script jagman Programming 4 04-05-2005 04:58 PM
Call a shell script from php? jharper101 Programming 2 02-15-2005 12:51 AM
My shell script can't seem to call another script kakho Programming 3 04-17-2004 09:21 AM
Urgent: Call a C program through Linux shell script nuwandee Programming 14 04-10-2004 07:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration