I have documents that each have an attached XML file in a Rich Text Field.
I have an Agent that detaches these XML files in batches, placing them in a temporary directory on the server.
After zipping the files – one zip file per batch – to be picked up by the Agent, placed in a document, and mailed.
Is there a way of putting this entire process in the Agent using Shell commands? If so, what is the correct syntax for these commands, given that we know the file names, etc.?
If not, would it be possible to trigger the zipping action via a batch file?
The process would also have to have a waiting period built in, or maybe use temporary trigger files that can be used for checking that the external process has been completed.
It sounds simple, but the problem is that I don’t know which commands or triggers I can use. Can anyone help me find a working example?