README
上传用户:mei_mei897
上传日期:2007-01-05
资源大小:82k
文件大小:1k
- sms.pl - access sms_client via a web browser
- Author: David Usherwood (davidu@infocat.co.uk)
- This is a very simple perl script which allows text messages to be
- input and sent to multiple recipients. It reads the entries in
- /etc/smsrc and offers them up in a multi-select list.
- Please be kind - this is my first Web-related perl script.
- Installation
- The script should just install in your cgi-bin directory, and be
- accessible as http://<yourserver>/cgi-bin/sms.pl .
- It requires CGI.pm . If you have a fairly new perl (5.003 upwards),
- all the perl stuff should be there.
- But you will probably need to make some permission changes to
- your system. Again, I am not a Unix security guru, so there may
- be a better way to do this.
- sms.pl is run by your web server. Under Apache (which I used for
- testing), the sessions can be specified to run under a userid such
- as (say) www .
- sms.pl runs sms_client. Thus sms_client needs to be executable by www.
- But sms_client runs libmodem, and that needs access (read I assume) to
- /etc/modems. Thus make that readable by www (directly or via a group).
- Lastly, sms_client talks to the modem hardware - so whatever modem
- you want to access must be read/write to www. On my system it is
- /dev/ttyS1, ie COM2 to PC types like me.
- Then it should work. If it doesn't, I am interested to know why.
- And I can certainly envisage that the Web page itself could be greatly
- improved...
- And I am going to try to think up some sensible trapping of
- comms errors, too