Automic Workload Automation

  • 1.  EVENT.UNIXCMD writing out a temp file to the location the event is checking for files

    Posted Jan 19, 2018 11:38 AM

    I have a questions about a file event that has a PREP_PROCESS script that gets kicked off when the event sees a file its checking for... The issue is that because I'm using the PREP_PROCESS its writing out a temp file to the same directory the event is checking for files... That's a problem because the event is picking up any file that gets written to that directory so it picks up (or attempts ) to pick the temp file up... ... but by the time the JOBF gets kicked off the temp file is gone so the JOBF object fails..

    I opened a ticket with Automic and they said to post it in the community to see how others are handling this situation...They said I could update the location of the temp file by updating  EVENT.UNIXCMD  in client 0 ...has anybody done that? Any gotchas? concerns updating that? thanks



  • 2.  EVENT.UNIXCMD writing out a temp file to the location the event is checking for files

    Posted Jan 19, 2018 11:46 AM
    I haven't for this specific scenario but have modified those events. My recommendation is duplicate the EVENT.UNIXCMD and rename it for testing. In the actual PREP_PROCESS script you can add the name of the new EVENT.

    Example of the change:

    :SET &HND# = PREP_PROCESS("UNIX01","UNIXCMD.NEW.OUTPUT",,"CMD=netstat -an | grep 2400","UC_LOGIN=LOGIN.UNIX")
    Or something along those lines.

    As far as the content of the eventfile it looks fairly easy to modify the location of the file.


  • 3.  EVENT.UNIXCMD writing out a temp file to the location the event is checking for files

    Posted Jan 19, 2018 02:15 PM
    Mike,, you got an example of modifying the file location?  I don't want to modify the location of the file the event is looking for.... just the temp file that automic is writing out to that same directory.. that make sense?


  • 4.  EVENT.UNIXCMD writing out a temp file to the location the event is checking for files

    Posted Jan 19, 2018 04:34 PM
    I have not attempted that specifically but have modified the event for windows is the past . I was more suggesting a way to modify the event in client 0 so that there is no impact to other PREP_PROCESS jobs while testing


  • 5.  EVENT.UNIXCMD writing out a temp file to the location the event is checking for files

    Posted Jan 20, 2018 03:07 AM
    This should help you a bit:

    https://community.automic.com/discussion/8844/prep-process-ends-up-in-a-no-such-file-or-directory-error-if-the-os-command-returns-rc-0

    BTW: you can create your own tailormade EVENT.UNIXCMD in your client.

    cheers, Wolfgang



  • 6.  EVENT.UNIXCMD writing out a temp file to the location the event is checking for files

    Posted Jan 23, 2018 02:16 AM

    I think this technical article can help much on this topic:

    How does the PREP_PROCESS script function work and how can it be customized?</p>