Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $temp=`/home/pi/spitest/RaspberryPi-mcp3008Spi/tempv1`;
- print $temp;
- pi@raspberrypi /var/www/cgi-bin $ ls -la temp.pl
- -rwxrwxr-x 1 root root 193 Apr 12 15:09 temp.pl
- pi@raspberrypi /var/www/cgi-bin $ perl temp.pl
- Content-Type: text/plain
- <html><body>20.4</body></html>pi@raspberrypi
- http://192.168.1.102/cgi-bin/temp.pl
- output: <html><body></body></html>
- my @output = `scriptName 2>&1`;
- which perl
- #!/bin/perl
- server.modules += ( "mod_cgi" )
- $HTTP["url"] =~ "/cgi-bin/" {
- cgi.assign = ( ".pl" => "/usr/bin/perl" )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement