On Monday 11 April 2005 5:14 pm, Maxim Vexler wrote:
> For the sake of example, lets assume I have this text inside a var in
> the bash script.
>
> postmsg() {
> local str1=${1)
> }

yes, is possible. I've once written a bash script that connects to my server 
(not HTTP) and it just works.

http://devwiki.mylair.de/file/trunk/contrib/rrd%2Bcron%2Bcgi/rrdyacs.sh

have a look at my yacs_stats() function to see how to do this in a real world 
example.

> What I would like to do is take that string from str1 and post it to a
> thread in a phpbb forum.
>
> If you need a test place i've set up a test phpbb forum at the address
>
> : http://hq4ever.mybesthost.com/viewtopic.php?t=4, you are welcome to

you must be aware of the HTTP/1.0 / HTTP/1.1 RFC. but that's rather simple.

If you're not in luck (lagging experience), curl might assist you then. 
But wouldn't be real bash scripting then ;)

Christian Parpart.

-- 
Netiquette: http://www.ietf.org/rfc/rfc1855.txt
 17:55:28 up 19 days,  7:01,  2 users,  load average: 0.69, 0.62, 0.48

Attachment: pgpKEOLZNtZWS.pgp
Description: PGP signature

Reply via email to