mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Added some more scripts
This commit is contained in:
1 parent
1849bd34e5
commit
6838f0ce5f
5 files changed
+95
-1
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
START=$((`date +%s` - 2678400))
|
||||
END=`date +%s`
|
||||
MONTH=`date -d yesterday +_%Y_%m`
|
||||
DATE=`date -d yesterday +%b\ %Y`
|
||||
OUT=/home/krowbar/logs/chatcloud${MONTH}.json
|
||||
DIR=/home/krowbar/public_html/data
|
||||
PAGE=/home/krowbar/public_html/chatcloud/index.html
|
||||
LINE=7
|
||||
|
||||
/usr/bin/python /home/krowbar/Code/python/chatcloud2.py -timeend $END -timestart $START -outfile $OUT
|
||||
ln -s $OUT $DIR
|
||||
|
||||
sed "${LINE}i <option value=\"${MONTH}\">${DATE}</option>" < $PAGE > $PAGE.tmp
|
||||
mv $PAGE.tmp $PAGE
|
||||
Reference in new issue
Block a user