I'm trying to send a codebar to a thermal printer via shell_excec(), the variable 'a' contains the route of the desired code and the code name itself. I'm working on localhost. My problem is that this chunk of code is properly executed in GNU/Linux (Trisquel) but when I switch to OsX it won't work
My first guess was that the file didn't had the proper permissions, but already checked and that's not the problem.
<?php
$cod =$_POST["a"];
$salida = shell_exec('lpr '.$cod);
echo $salida.' lpr '.$cod;
?>