Hey all, Ive got a bit of a curly one I haven't been able to work out yet... Here is the scenareo.... I have a GSM Modem sitting on the serial port of a FreeBSD 4.0 box. It has some software running which basically conrols the GSM modem. When I use it command line, I issue it the command and it does its stuff and outputs me some data so I know its outcome (whether it was successful or not depends on what is output). This is fine because I can make the script wait for the output from the spawned command when I do it via PHP. The question is, whenever an SMS message comes into the GSM modem, it outputs some more text. Now.. if in sitting in console on the box, it comes up on my screen. What I want to be able to do is, whenever a message comes into the GSM modem, somehow detect it, fire off a PHP script I will write, and do whatever it needs to do with it. I just dont know how to go about waiting for some form of output in FreeBSD, when it happens fire off a script. I dont know if what im talking about makes sense, or is even doable, but if anyone has any ideas or suggestions it'd be appreciated. Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 8888 fax: +61 2 4628 8890 __-----------------------------------------__ *** Big Brother *** It just shows that the dull will rule the world. And we will be watching it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]