php - Pipling STDOUT to script not activating script -
i trying pipe stdout script bash script sends curl post info.
this command looks like:
rtl_fm -g 100 -d 3 -s 22050 -f ${pager_freq} - | multimon-ng -q -f alpha -a pocsag512 -t raw - | tee page-upload.sh
when echo script text similar output script works expected:
echo "pocsag512: address: 1210001 function: 0 alpha: p121 replace unit p116<lf>in station 116<lf>6825 tomken rd<lf>2017/09/11 17:23:50<eot>"|page-upload.sh
i have tried doing curl directly after echo or inside bash scripts , php, reason no joy.
any thoughts?
you using tee
wrong way. tee
writes file, not call script. maybe mean this
rtl_fm -g 100 -d 3 -s 22050 -f ${pager_freq} - | multimon-ng -q -f alpha -a pocsag512 -t raw - | tee upload.log | page-upload.sh
Comments
Post a Comment