PABX da Simples IP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
250 B

#!/bin/bash
. /var/lib/asterisk/scripts/callcenter/bd
TBL_AGENTES="pbx_supervisor_agentes"
if [ -z "$1" ]
then
exit
fi
export PGPASSWORD=$SENHA
psql -c "delete from $TBL_AGENTES where matricula = '$1'" -h $HOST_DB -d $BASE_DB -U $USUARIO