Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $temp=`/home/pi/spitest/RaspberryPi-mcp3008Spi/tempv1`;
  2. print $temp;
  3.  
  4. pi@raspberrypi /var/www/cgi-bin $ ls -la temp.pl
  5. -rwxrwxr-x 1 root root 193 Apr 12 15:09 temp.pl
  6. pi@raspberrypi /var/www/cgi-bin $ perl temp.pl
  7. Content-Type: text/plain
  8.  
  9. <html><body>20.4</body></html>pi@raspberrypi
  10.  
  11. http://192.168.1.102/cgi-bin/temp.pl
  12.  
  13. output: <html><body></body></html>
  14.  
  15. my @output = `scriptName 2>&1`;
  16.  
  17. which perl
  18.  
  19. #!/bin/perl
  20.  
  21. server.modules += ( "mod_cgi" )
  22.  
  23. $HTTP["url"] =~ "/cgi-bin/" {
  24. cgi.assign = ( ".pl" => "/usr/bin/perl" )
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement