The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to interpret TOP dj_jay_smith UNIX for Dummies Questions & Answers 7 05-23-2009 01:22 PM
How Do We Interpret This ? dummy_needhelp Shell Programming and Scripting 2 10-31-2007 02:07 PM
How to suppress error messages in script helper2007 Shell Programming and Scripting 5 01-17-2007 04:46 AM
How to see replies for my post !!!!! senthilvnr Post Here to Contact Site Administrators and Moderators 1 02-17-2006 10:47 AM
Unix script execution messages JimJim UNIX for Advanced & Expert Users 2 11-13-2004 01:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-16-2006
frustrated1 frustrated1 is offline
Registered User
  
 

Join Date: Aug 2003
Location: Ireland
Posts: 278
script to post messages and interpret replies

Not really sure if this is the place to ask or if I am asking the correct question.

I want to create a script (ksh) on solaris. This will be a menu based script for the user and they will only give on input, a customer number.
ie ./my_script 112233
Thats the easy bit which obviously i can do..

What i need to do with the number is post a url to a server
eg http://customerserver.com/cgi-bin/ge...details/112233

I could just use this url in a browser and I would get results in a page with some xml and then the customer details. I need to be able to post this via a script to the server, and for the script to be able to read the response and then some way for me to interpret the results so I can present in a readable friendly manner to the user that runs the script in stead of a whole load of xml returned....

Any ideas how I get started with this? I know mainly ksh, small bit of perl but not a whole lot....
  #2 (permalink)  
Old 12-16-2006
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
look into installing 'wget' - Solaris doesn't come with the 'wget' installed.
'wget' will allow you to do a 'post' against the server.

If you already have a sample XML 'reply' from a server, you can write a parser to extract relative/needed information and display it in a 'user-friendly' way.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0