/dev/null 2>&1 ; (unix) Scrapes corrupt/zenet with no text output, in the background (you can close your terminal window).' . PHP_EOL . 'php ' . $argv[0] . ' efnet true ; Scrapes efnet with no text output, keeps lock on terminal (closing terminal kills the scraping).' . PHP_EOL . 'php ' . $argv[0] . ' cz true true ; Scrapes corrupt/zenet with text output and debug output.' . PHP_EOL ); } if (!in_array($argv[1], array('efnet', 'cz'))) { exit('Error, must be efnet or cz, you typed: ' . $argv[1] . PHP_EOL); } require_once('/var/www/newznab/misc/update_scripts/nix_scripts/tmux/lib/IRCScraper/settings.php'); if (!defined('SCRAPE_IRC_EFNET_ENCRYPTION') || !defined('SCRAPE_IRC_CORRUPT_ENCRYPTION') || !defined('SCRAPE_IRC_ZENET_ENCRYPTION') ) { exit ('ERROR! You must update your settings.php using settings_example.php (the encryption setting was added)' . PHP_EOL); } if (SCRAPE_IRC_EFNET_NICKNAME == '' || SCRAPE_IRC_CORRUPT_NICKNAME == '' || SCRAPE_IRC_ZENET_NICKNAME == '') { exit("ERROR! You must put a username in settings.php" . PHP_EOL); } if ($argv[1] === 'cz') { if (SCRAPE_IRC_C_Z_BOOL === true) { $argv[1] = 'corrupt'; } else { $argv[1] = 'zenet'; } } $silent = ((isset($argv[2]) && $argv[2] === 'true') ? true : false); $debug = ((isset($argv[3]) && $argv[3] === 'true') ? true : false); // Net_SmartIRC started here, or else globals are not properly set. new IRCScraper( $argv[1], $silent, $debug );