AppWorx, Dollar Universe and Sysload Community

 View Only
  • 1.  Passing Parameter from Application Manager to shell script

    Posted Feb 21, 2020 12:21 PM
    Is there a way to pass a parameter from Application Manager to a shell script?  I see that you can choose awsqlp for a parameter to pass to an sql script but I need this to work for a .shl script.


  • 2.  RE: Passing Parameter from Application Manager to shell script

    Posted Feb 24, 2020 03:05 PM
    You can pass prompts similarly to what you do for sql prompts depending on how you define the program type in Applications Manager.  Also, you can user the appworx getvar command to get the value of a subvar.


  • 3.  RE: Passing Parameter from Application Manager to shell script

    Posted Feb 25, 2020 09:43 AM
    Thanks, Scott.  I had the same question and I'll read up in the getvar command.

    ------------------------------
    Applications Developer
    Emporia State University
    Kansas
    ------------------------------



  • 4.  RE: Passing Parameter from Application Manager to shell script

    Posted Feb 24, 2020 03:05 PM
    I figured out what I was doing wrong and all is working as I need it to.


  • 5.  RE: Passing Parameter from Application Manager to shell script

    Posted Feb 24, 2020 03:06 PM
    Thank you!


  • 6.  RE: Passing Parameter from Application Manager to shell script

    Posted Sep 11, 2020 04:41 PM
    Hi Shelley,

    How did you pass the parameters? I'm in a similar situation. I need to pass a parameter from my process flow to a shell script. Currently the parameters are being passed into the job using #2 and #3 from the main prompts. When the job runs I'd like to pull the values from #2 and #3 into my shell script. Any help would be greatly appreciated.

    Thanks,

    Ryan​​​​


  • 7.  RE: Passing Parameter from Application Manager to shell script
    Best Answer

    Posted Sep 24, 2020 04:36 AM
    if the job definition within AM includes prompts, the values will automatically be supplied at execution time

    within the shell script, you can simply reference the supplied values by position i.e $1, $2

    ------------------------------
    Cheers
    Pat
    ------------------------------



  • 8.  RE: Passing Parameter from Application Manager to shell script

    Posted Oct 15, 2020 04:08 AM
    I am really happy to say that, It is a very interesting post to read. I learnt new information from your article, you are doing a great job! Thank you.