Howdy Pav, welcome to the Monastery! Unfortunately, your question's a bit too general to answer. What exactly do you want to do? What have you tried? What isn't working? And how much will you pay us per hour for writing your code for you? :)
Here's some tips and links on how to ask questions effectively (taken from my homenode):
How to ask questions:
Asking questions effectively:
In reply to Re: A sample script to login to cqweb and run a query
by AppleFritter
in thread A sample script to login to cqweb and run a query
by Pav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |