Added timeout and limit to script entries
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
Single script that runs once and completes.
|
||||
Output is stored in context until explicitly deleted.
|
||||
Used for one-time operations like file manipulation.
|
||||
Single scripts are limited to 1024 characters and 1 second timeout by default.
|
||||
These limits can be changed with attributes.
|
||||
Example:
|
||||
<single>
|
||||
ls /
|
||||
@@ -43,6 +45,8 @@
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="timeout" type="xs:float" use="optional"/>
|
||||
<xs:attribute name="limit" type="xs:integer" use="optional"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
@@ -51,6 +55,8 @@
|
||||
After a command is issued, all repeat scripts in context are run again.
|
||||
Useful for monitoring changing files or viewing results immediately after changing a file.
|
||||
Repeat scripts should execute quickly to avoid blocking the agent.
|
||||
Repeat scripts are limited to 1024 characters and 1 second timeout by default.
|
||||
These limits can be changed with attributes.
|
||||
Example:
|
||||
<repeat>
|
||||
ls /
|
||||
@@ -61,6 +67,8 @@
|
||||
<xs:sequence>
|
||||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
|
||||
</xs:sequence>
|
||||
<xs:attribute name="timeout" type="xs:float" use="optional"/>
|
||||
<xs:attribute name="limit" type="xs:integer" use="optional"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
@@ -83,6 +91,7 @@
|
||||
|
||||
<!--
|
||||
Read all available text on stdin and store it in context.
|
||||
Do this only if the context indicates there is data in the stdin buffer.
|
||||
Example:
|
||||
<read_stdin/>
|
||||
-->
|
||||
@@ -93,6 +102,7 @@
|
||||
<!--
|
||||
Write to stdout.
|
||||
This is your main way of contacting the user.
|
||||
Make sure you have properly reasoned about what to say and if it is necessary before issuing a write_stdout command.
|
||||
Example:
|
||||
<write_stdout>
|
||||
Hello world!
|
||||
|
||||
Reference in New Issue
Block a user