Files
newznab-tmux/alienx/tmux_to_newzdash.php
T

28 lines
491 B
PHP

<?php
/*
This script requries 2 arguments:
1) Pane Name that you are communicating
2) The panes state (stopped/started)
Example:
tmux_to_newzdash.php update_binaries started
*/
require_once ( "ndComms.php" );
DEFINE ( 'ARG_PNAME', 1 );
DEFINE ( 'ARG_PSTATE', 2 );
DEFINE ( 'ARG_NDSHAREDSECRET', 3 );
DEFINE ( 'ARG_NDURL', 4 );
$ndComms = new newzdashComms();
if ( !$ndComms->init() )
die();
$ndComms->broadcast($argv);
?>