From b352ff7ecab02759c81a72eb1ac993a0d1a8f1b6 Mon Sep 17 00:00:00 2001 From: Alex Henning Date: Tue, 9 Aug 2011 14:26:04 -0400 Subject: [PATCH] Added support for running in the background. --- README.org | 3 ++- bluebird | 2 ++ bluebird.py | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 bluebird diff --git a/README.org b/README.org index ca59cca..2e66ca7 100644 --- a/README.org +++ b/README.org @@ -16,7 +16,8 @@ histogram of all the tweets for a given query. 3. Open settings and set the host and port to the desired values. Default: localhost:8348 -3. Run it the script as =./bluebird.py= with Python. +3. Run it the script as =./bluebird= it will start out as a background + process. 4. Visit =host:port= i.e. =localhost:8348=. 5. Enter a query and hit analyze. (There may be a long delay, the latency for fetching from twitter is very high) diff --git a/bluebird b/bluebird new file mode 100755 index 0000000..46d67ac --- /dev/null +++ b/bluebird @@ -0,0 +1,2 @@ +#!/bin/sh +nohup ./bluebird.py & \ No newline at end of file diff --git a/bluebird.py b/bluebird.py index ea4ab8e..815c72b 100755 --- a/bluebird.py +++ b/bluebird.py @@ -59,6 +59,8 @@ def call(*args, **kwargs): else: cache[key] = (datetime.now(), f(*args, **kwargs)) return cache[key][1] + call.__name__ = f.__name__ + call.__doc__ = f.__doc__ return call return dec