Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

mp-form.txt 1.6KB

1234567891011121314151617181920212223242526
  1. mp-form.pl - Send magic packets with your web server
  2. This is my trial of waking up PCs with a form via web server.
  3. The perl script reads in a text file which contains lines of the form
  4. aa:bb:cc:dd:ee:ff 12.34.56.78 or
  5. aa:bb:cc:dd:ee:ff foo.bar.com
  6. aa:bb:cc:dd:ee:ff
  7. The script is based on wake.pl by Ken Yap who is also the author of the Etherboot package.
  8. The script uses CGI.pm to parse form input and Socket.pm to send the magic packets, both
  9. modules should belong to your perl distribution. The script runs with linux as well as
  10. with NT, with NetWare you have to use the Socket.NLP from recent Perl build #334, with
  11. Perl build #333 and earlier I got an error from the Socket.pm.
  12. This script uses only broadcast so you don't need root rights to use it.
  13. To install the script copy it to your ../cgi-bin directory. Then for Linux do a chmod 755
  14. to the script. Modify the lines which point to the location of the maclist. If you do not
  15. have a maclist, the form could save new entries to a list (with unix perhaps you have to
  16. create an empty file). Check also the first line of mp-form.pl and modify it to point to
  17. your perl5 location. For NetWare copy the script to /novonyx/suitespot/docs/perlroot.
  18. Older version: If you have problems running the script with CGI.pm you could try the older
  19. version mp-form1.pl which uses cgi-lib.pl to parse form input. You can get cgi-lib.pl
  20. from http://cgi-lib.berkeley.edu/. With NetWare you should also use mp-form1.pl as using
  21. CGI.pm consumes much memory. The older version is also included in the zip archive.
  22. Homepage of the script: http://www.gknw.de/mpform.html