#!/bin/bash . /var/lib/asterisk/scripts/callcenter/bd TBL_AGENTES="pbx_supervisor_agentes" if [ -z "$1" -o -z "$2" ] then exit fi export PGPASSWORD=$SENHA psql -c "insert into $TBL_AGENTES (status,matricula,tempo_login,logado) values ('$1','$2',now(),now())" -h $HOST_DB -d $BASE_DB -U $USUARIO