AppWorx, Dollar Universe and Sysload Community

  • 1.  can i transport variable

    Posted Sep 12, 2018 08:19 AM

    hello 

    i have a session AAA

    this session has step1 step2 step3

    can i put a variable into script step1 and grab into step 3 or 2 ?

    i wans put variable in step1 bbb=1

    and when i try to echo $bbb in step3 appear empty 



  • 2.  Re: can i transport variable

    Posted Sep 12, 2018 08:43 AM

    Hi,

     

    Sorry but your question is absolutely not clear. 

     

    What do you mean by "session" ? How are the variables defined ? Is it in a Windows job, a Unix job, something else ? 

     

    Could you maybe share the script you are attempting to run ?

     

    Best regards,

    Antoine



  • 3.  Re: can i transport variable

    Posted Sep 12, 2018 08:51 AM

     session AAA  has step1 step2 step3

    there is unix scripts (bash)

    step1 

    #!/bin/bash

    bbb=1
    export bbb

     

    step3 

    #!/bin/bash

    echo $bbb

    #########################

    the variable bbb is emply when i launch session AAA

    all steps are related 

    step1->step2->step3 

     



  • 4.  Re: can i transport variable

    Posted Sep 12, 2018 08:57 AM

    Hi,

     

    So if I understand correctly you have 3 different shell scripts, and you want to share variables between these scripts?

     

    Are you running these scripts inside of Automic? Are all steps contained in a single job object, or are they broken into 3 different jobs ?

     

    Best regards,

    Antoine



  • 5.  Re: can i transport variable

    Posted Sep 12, 2018 09:02 AM

    all 3 steps are broken in 3 UPROCs 

    all 3 steps are CL_INT

    and yes 

    there is running inside dollar universe



  • 6.  Re: can i transport variable

    Posted Sep 12, 2018 09:06 AM

    Ok thanks for the clarification.

     

    I take it if you have UPROCS you work with Dollar Universe. This part of the forum is dedicated to AWA (Automic Workload Automation).

     

    Octavie LuuLe Could you please move this discussion to Dollar Universe - English? Thanks

     

    Best regards,

    Antoine



  • 7.  Re: can i transport variable

    Posted Sep 12, 2018 09:12 AM

    Antoine - Thanks for your attention. This has been moved in the right community.



  • 8.  Re: can i transport variable
    Best Answer

    Posted Sep 12, 2018 09:27 AM

    Hi

     

    You need to set the inheritance variable with the command uxset hvar.

    Take a look to this discussion to get more insights. Of course the Command manual is also a  great help.



  • 9.  Re: can i transport variable

    Posted Sep 12, 2018 09:38 AM

    thank you verry much