AutoSys Workload Automation

 View Only
  • 1.  Shell script probelms run via autosys

    Posted Jul 31, 2019 09:04 PM

    the thing i'd like to know is if anyone has ever written a shell script that works correctly when run manually in the shell but fails when run via autosys, and, if so, what did they do to fix it?



  • 2.  RE: Shell script probelms run via autosys

    Posted Aug 01, 2019 07:07 AM

    Adam,

     

    The shell is probably assuming path and not setup up the environment it needs to run.

    This is always the case of running as a person and running as batch.

     

     

    Steve C.

     



    Nothing in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.

    Confidentiality Note: This message is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged material. Any review, transmission, dissemination or other use, or taking of any action in reliance upon this message by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this message in error, please contact the sender and delete it from your computer.





  • 3.  RE: Shell script probelms run via autosys

    Posted May 12, 2021 10:49 AM

    Adam,
    Are you on Solaris?  Is the error "Invalid script error"?  It may be you need to add the particular shell being used to run the script to the agentparm.txt file in the WA_AGENT directory, or to turn off shell validity checking.  We're dealing with that right now.

    Regards,
    Joe Poutre
    Prudential




  • 4.  RE: Shell script probelms run via autosys

    Posted May 13, 2021 04:25 PM

    We had that issue a few years back – we are a windows shop.

     

    Here is what we got to work in autosys:

     

    insert_job: C.VERTEX.00.SSS.CMD.ENCRYPT_PASSWORD   job_type: CMD

    command: powershell.exe -NonInteractive -command "& 'c:\vertex\ABC123\EncryptVertexPassword.ps1' 'XXXXXXXX'"

    description: "(ON DEMAND with Manager Approval) encrypt the password for the Vertex userid. change the parameter XXXXXXXX to the new password, run the job and change the parameter back to XXXXXXXX. Delete any logs from server."




    This entire email message (including all forwards and replies) and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret, work-product, attorney-client or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.