Avoid httpd killing fetchtweets early by executing it off in the background

TODO: some UI if lock is around, to tell folks a fetch is underway
This commit is contained in:
Kai Hendry
2012-07-24 17:23:31 +02:00
parent 41389fb344
commit 782a06d13f
3 changed files with 16 additions and 37 deletions

View File

@@ -5,7 +5,7 @@ test -s "$1" || exit
test "${1##*.}" = 'txt' || exit
temp=$(mktemp "$1.XXXX")
trap "rm -f $temp" INT
trap "rm -f $temp" EXIT
IFS='|'
while read -r id date text