I never did get any good replies, but I'm thinking of tackling it again, so thought I'd throw out how I think it would work and hope someone will pitch in with their thoughts:
1. write a local client/server that runs locally listening for send requests, whilst keeping the ICQ session open with the ICQ server
2. write a module to send the messages to the listening ICQ client/server. Eg, following methods:
If the client/server is down, it restarts it (hopefully it would die nicely to an error log somewhere :-)my $icq = ICQserve::new(); $icq->uin(123456); $icq->message("this is the message"); $icq->send();
But, not being a sysadmin type, and not having done a lot of socket stuff, I wonder whether I'd encounter problems with keeping a port (socket? whatever...) open locally to listen for ICQ messages to send (only from local scripts). I was also thinking of pumping received messages through a script too, but let's keep it to sending just for now.
So has anyone made any progress on this? Is there anyone out there who would like to pitch in to make this work? - I think i may need some help with the sockets stuff.
I just think it would be damn useful for server alerts etc... Or am I just reinventing the wheel - ie, is there a shell ICQ client already available that we could pipe stuff to?
All thoughts welcomed on this.
cLive ;-)
--
seek(JOB,$$LA,0);
In reply to ICQ using Perl by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |