Skip to content

Commit

Permalink
Added support for running in the background.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhenning committed Aug 9, 2011
1 parent 5c652f2 commit b352ff7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.org
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions bluebird
@@ -0,0 +1,2 @@
#!/bin/sh
nohup ./bluebird.py &
2 changes: 2 additions & 0 deletions bluebird.py
Expand Up @@ -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

Expand Down

0 comments on commit b352ff7

Please sign in to comment.