4 lines
194 B
Bash
Executable file
4 lines
194 B
Bash
Executable file
#!/bin/bash
|
|
printf -v id "%q" "$1"
|
|
printf -v duration "%q" "$2"
|
|
psql -h pgsql.adm.crans.org -U crans django -c "UPDATE voip_history SET duration='$duration' WHERE uniq_id='$id'" >> /tmp/history
|