code import

This commit is contained in:
Ruzicka Pavel 2017-12-29 18:53:46 +01:00
parent 5a102fcd5a
commit fc36d54062
18 changed files with 1809 additions and 1 deletions

5
userlog.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
# Print out the log for specified user from last midnight
echo ".headers on
SELECT * FROM transhuman WHERE strftime('%Y-%m-%d',age)=date('now','localtime') AND user='$1';" | sqlite3 ./brmbar.db