diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-20 14:58:47 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-20 14:58:47 -0700 |
commit | 198afa0a1d61c4db2cf6b66e5801af506462ab9b (patch) | |
tree | d42ba4a5afae56af975ebddc784c93be820cbcdb /scripts/twitterstatusfetcher.php | |
parent | 45430d2b3b952dda31d232c2726e5980a7e6e56a (diff) |
change scripts to take server and path from commandline
Diffstat (limited to 'scripts/twitterstatusfetcher.php')
-rwxr-xr-x | scripts/twitterstatusfetcher.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/twitterstatusfetcher.php b/scripts/twitterstatusfetcher.php index 20f42cef8..2863207b0 100755 --- a/scripts/twitterstatusfetcher.php +++ b/scripts/twitterstatusfetcher.php @@ -33,7 +33,12 @@ define('MAXCHILDREN', 2); define('POLL_INTERVAL', 60); // in seconds // Uncomment this to get useful logging -define('SCRIPT_DEBUG', true); +// define('SCRIPT_DEBUG', true); + +// Preset the server at the command line + +$server = ($argc > 2) ? $argv[2] : null; +$path = ($argc > 3) ? $argv[3] : null; require_once INSTALLDIR . '/lib/common.php'; require_once INSTALLDIR . '/lib/daemon.php'; |