Php Help!!!
I need to be able to execute a shell command if a mysql query is successful.
(i know of the command system() ) background: slackware box, running mysql and apache, has no keyboard or mouse, or monitor (input is strickly barcode scanner) if the scan is sucessfull i need to print a file directly to a parallel printer attached to the server if it is unsucsessful i need the computer to beep (\a command which DOES not work for me!!!!!) Please help!!!! |
\a probably doesn't work in your case, because \a causes beep on the client-end when there is a tty attached.
Use beep instead. |
Here is the code from my php page, lynx is not running as root.
exec('/usr/bin/beep'); but will not beep when executed. beep DOES work running as root from console, running as another user (loged out and back in ) i get "could not open /dev/console for writing" any advice????? |
Is the php scrip on the same pc as you are accessing the page from?
|
See the README that was with the software. ;) (the beep has to be set suid-root)
|
Quote:
|
Quote:
BEEP WORKS FROM SCRIPT NOW!!!! thanks guys now have to figure out printing |
All times are GMT -5. The time now is 01:42 PM. |