here is a method for start/stopping triggers via script...
install and get pwadmin working using the default install location...
create a script called trig.jsp in the directory /usr/local/jakarta/webapps/pwAdmin/AA
copy and paste this code into the trig.jsp script,
Code:
<%@page contentType="text/html; charset=UTF-8" %>
<%@page import="java.lang.*"%>
<%@page import="protocol.*"%>
<%@page import="com.goldhuman.auth.*"%>
<%@page import="org.apache.commons.logging.Log"%>
<%@page import="org.apache.commons.logging.LogFactory"%>
<%@page import="com.goldhuman.util.*" %>
<%
String opt = request.getParameter("trg_opt");
String tag = request.getParameter("trg_tag");
int worldtag = Integer.parseInt(tag);
String id = request.getParameter("trg_id");
String command;
if ( opt.equals("start") )
{
command = "active_npc_generator "+id;
}
else
{
command = "cancel_npc_generator "+id;
}
DeliveryDB.GMControlGame( worldtag, command );
%>
set the trig.jsp script permission to 777...
from command line run this,
Code:
/usr/bin/wget http://127.0.0.1:8080/pwadmin/AA/trig.jsp?trg_opt="start"\&trg_tag="1"\&trg_id="3035" && rm -f trig.jsp?*
the idea here is to use pwAdmin's json/api... with a bit of creativity you could put this command in a script and pass arguments to it for smaller command lines...