Automic Workload Automation

  • 1.  Changing permissions on files before or after they're transferred

    Posted Jun 17, 2016 06:23 AM
    Should you need to perform actions at the OS level, such as changing file permissions for instance, this will have to be done in a separate OS job.

    For instance, if you want to make files read-only in Windows, you can create a Workflow (JOBP) that will contain a JOBF and a JOBS:

    nr4l9ih2xogv.jpghttps://us.v-cdn.net/5019921/uploads/editor/71/nr4l9ih2xogv.jpg" width="788">

    The JOBF will transfer files from one location to the other:

    utovybsdmwwj.jpghttps://us.v-cdn.net/5019921/uploads/editor/3x/utovybsdmwwj.jpg" width="723">

    You can apply modifications to the files after they were transferred with a regular OS command. The DOS command below will recursively set txt files located in c:\temp\transfer to 'Read Only':

    am0tygqbk7i9.jpghttps://us.v-cdn.net/5019921/uploads/editor/n9/am0tygqbk7i9.jpg" width="725">


  • 2.  Changing permissions on files before or after they're transferred

    Posted Jun 20, 2016 03:22 AM
    Another Idea could be using PREP_PROCESS in Postscript to change permissions afterwards:

    :SET &HND# = PREP_PROCESS("VWGSUP16_UNIX","UNIXCMD",,"CMD=chmod 777 /tmp/1/test_changed_*.txt","UC_LOGIN=@LOGIN")

    http://docs.automic.com/documentation/AE/11.2/english/AE_WEBHELP/help.htm?product=undefined#ucaafp.htm%3FTocPath%3DAutomation%2520Engine%2520Script%2520Guide%7COrdered%2520by%2520Function%7CData%2520Sequences%7C_____7

    Pls see also Knowledge Base entry with example:
    https://eu2.salesforce.com/ka4b0000000GrVO





  • 3.  Changing permissions on files before or after they're transferred

    Posted Jun 20, 2016 03:47 PM
    I posted an updated version of a similar solution I came up with a few years ago:
    Set permissions after file transfer