Hi Miguel,As you have seen, UniVerse does not permit you to invoke the operating system shell from within a UniVerse trigger, which is what executing "DOS" will do. I can think of a lot of reasons why that is the case, including what would happen to the transaction if the command being invoked crashes or otherwise aborts.What are you trying to do in the trigger that cannot be done in BASIC?Henry
I have found the best practice with triggers is to write out your commands to a tickler file. Then phantom process can go through the tickler file and execute the commands.
David A. Green
A tickler file is just a UV file. One that holds your commands. The id is usually code.date.time so that this file can be used by many processes. Then your phantom would select the file based on code sorted by date and time in order to execute your commands in the same order in which they were written to the UV file.
Dean, that's genius!
I will have to add that to my list of tools! I did use PAUSE/WAKE once because I had to wait for phantom process to finish before I could continue. So I share my PID with the phantom and put myself into PAUSE mode. Then the phantom wakes me when it has finished processing.
Hi Miguel,Have you considered using submitRequest to send the JSON to a web service? I haven't tried it from a trigger but we do use submitRequest to send JSONs all the time.