#include "RemoteAgentIF.h"
#include "Task.h"
#include "System.h"
#include "Syslog.h"

int main( int argc, char **argv )
{
    RemoteAgentIF * ra;
    if (argc > 1) {
	try {
	    if (System::findServer(RemoteAgentIFServerName)) {
		ra = new RemoteAgentIF("poinker");
		ra->poinkerCommand(argv[1]);
	    }
	}
	catch( SharedObjectClient::MissingServer e ) {
	    Syslog::write("poinker -- Could not find RemoteAgentServer.");
	    exit(-1);
	} catch( Exception e ) {
	    Syslog::write("Caught while instantiating interface: %s", e.msg );
	} catch(...) {
	    Syslog::write("Caught unknown exception while instantiating interface.");
	}
    }
    return 0;
}
