5 lines
220 B
Bash
Executable file
5 lines
220 B
Bash
Executable file
#!/bin/bash
|
|
printf -v id "%q" "$1"
|
|
printf -v src "%q" "$2"
|
|
printf -v dst "%q" "$3"
|
|
psql -h pgsql.adm.crans.org -U crans django -c "INSERT INTO voip_history (uniq_id,src,dst) VALUES ('$id','$src','$dst')" >> /tmp/history
|