[Ante-cvs] SF.net SVN: ante: [483] trunk/ant
Brought to you by:
roguestar191
|
From: <rog...@us...> - 2007-01-24 09:29:46
|
Revision: 483
http://svn.sourceforge.net/ante/?rev=483&view=rev
Author: roguestar191
Date: 2007-01-24 01:29:42 -0800 (Wed, 24 Jan 2007)
Log Message:
-----------
Updated cgiscript documentation
Modified Paths:
--------------
trunk/ant/httpd/aski.html
trunk/ant/main.cpp
Modified: trunk/ant/httpd/aski.html
===================================================================
--- trunk/ant/httpd/aski.html 2007-01-24 09:05:33 UTC (rev 482)
+++ trunk/ant/httpd/aski.html 2007-01-24 09:29:42 UTC (rev 483)
@@ -90,7 +90,8 @@
</th>
</tr>
<tr><th>%move<td>arg1: who to move in this room or "this"; arg2: direction<td>move someone or something around</th></tr>
-<tr><td>%give<td>args: from to itemname location, ex: give roger george diamond inventory to give goeorge the diamond from rogers inventory.<td>for giving things either target may be "this"</tr></th>
+<tr><th>%give<td>args: from to itemname location, ex: give roger george diamond inventory to give goeorge the diamond from rogers inventory.<td>for giving things either target may be "this"</tr></th>
+<tr><th>%snoop<td>1arg: player or Item in your room to snoop<td>see what the target sees</th></tr>
</table>
<hr>
World Editing callbacks.
Modified: trunk/ant/main.cpp
===================================================================
--- trunk/ant/main.cpp 2007-01-24 09:05:33 UTC (rev 482)
+++ trunk/ant/main.cpp 2007-01-24 09:29:42 UTC (rev 483)
@@ -134,6 +134,8 @@
Utils.writeFile("pidlist",pidlist,false);
};
extern void setsignals();
+ #include <sys/types.h>
+ #include <sys/wait.h>
int main(int argc, char *argv[])
{
@@ -205,7 +207,8 @@
std::string started = "echo $(ps -A | grep ";
started += startcmd;
started += " ) Copyover $(date) > ./curpid";
- system(started.c_str());
+ system(started.c_str());int x;
+ waitpid(-1, &x, 0);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|