script to post messages and interpret replies


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting script to post messages and interpret replies
# 1  
Old 12-16-2006
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  
Old 12-16-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Who -r interpret?

I booted into single user mode with /usr/sbin/reboot -- -s but after doing a control -d my who -r shows run-level 3 Nov 17 14:07 3 0 S I was expecting it to show run-level S why is this still in run level 3? thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Shell Programming and Scripting

don't know how to interpret this

Can anyone tell me how to interpret this: listpage="ls |more" (the spaces are there in the example) $listpage It's from my bash book and I'm not sure what it means (3 Replies)
Discussion started by: Straitsfan
3 Replies

3. UNIX for Dummies Questions & Answers

How does Awk interpret $0!~

I know $0 is the entire file's contents (at least I think that is what it is!), but what exactly is: $0!~ This was a snippet from a larger line awk '$0!~/^$/ {print $0}' This deletes blank lines, but I want to know specifically the $0!~ part... I am guessing /^$/ is regex for blank line...... (5 Replies)
Discussion started by: glev2005
5 Replies

4. Shell Programming and Scripting

Can someone interpret this -- not sure

Was wondering if someone could interpret this for me -- I'm not sure what everything means. It's a shell script from my bash book: cd () { builtin cd "$@" es=$? echo "$OLDPWD ->$PWD" return $es } what I don't quite understand is the "$@". I think, if I understand... (6 Replies)
Discussion started by: Straitsfan
6 Replies

5. UNIX for Dummies Questions & Answers

How to interpret TOP

Hi, So I am new to Unix, and I need to check the performance of some apps I am running. But I don't know how to interpret the output from TOP. Could somebody please explain the difference between the different values. And also explain how I can have a process which has a %CPU > 100? ... (7 Replies)
Discussion started by: dj_jay_smith
7 Replies

6. UNIX for Dummies Questions & Answers

Please interpret.

Hi guys, I have no idea on unix but suddenly, my cobol programs calls a unix script that i know nothing about. can you guys interpret these lines for me? i know its a print command but I want to actually know how many copies it prints. qprt -da -P $1 -t '6' -i '6' -l '70' $2 qprt -da... (1 Reply)
Discussion started by: supacow
1 Replies

7. Shell Programming and Scripting

How Do We Interpret This ?

ksh $ETL_XXX/bin/filename.ksh wf_workflowname . Which is used in post session command. (2 Replies)
Discussion started by: dummy_needhelp
2 Replies

8. Post Here to Contact Site Administrators and Moderators

How to see replies for my post !!!!!

Hi, I had post my queries regarding shared objects (.so) in this forum. But i cant able to see the replies. I doubt whether i had received any replies or not. Kindly help me, to know the procedure to see the replies for my queries. Thankyou. Regards, Senthil. (1 Reply)
Discussion started by: senthilvnr
1 Replies
Login or Register to Ask a Question