#!/bin/bash RUTA_PROCESADOR=/var/www/Captura RUTA_PS=/dev/ttyS0 #Puerto Serial CONF_VELOCIDAD="4800" CONF_NUMERO_BITS_TRAMA="7" CONF_OPCIONES="-parenb" #Configurando puerto serial para lectura stty $CONF_VELOCIDA -F $RUTA_PS cs$CONF_NUMERO_BITS_TRAMA $CONF_OPCIONES #Capturando data cat $RUTA_PS | while read line; do php $RUTA_PROCESADOR/controlador_llamada.php "${line}" && echo ${line}; done >> $RUTA_PROCESADOR/traza.log &