On Mon, Oct 09, 2000 at 11:05:47AM +1100, Peter Rundle wrote:
> Sluggers,
>
> I want to create a queue for an SMS messaging system. Can anyone point
> me towards documentation about queues under linux. I've done a man on
> lpq, fifo & batch but I need more info.
>
> Basically sms messages to be sent enter the queue (probably via e-mail)
> At the head of the queue a process dials out and sends the next message,
> it should also keep the dialup open and send all messages in the queue
> before closing the connection. If the dial-out fails, or any errors occur
> the message needs to be re-queued (remaining in order I guess). After x
> number of failures the message needs to be returned to sender. Sounds a
> bit like how mail works, perhaps I could use program delivery under
> sendmail in some fashion? But I need to stop sendmail from moving onto
> the next item in the mail queue, once it's dispatched the current message
> to the program, and I need for the program to be able to read the current
> queue and pull all the messages out of it.
>
Gus has a really good anwser to this one. I think it involves
using lprng , anyway basically you just print to the printer and it
determines the file type. So you could set it up to play an mp3 or send
an SMS dpending on file type.
--
John
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug