AppWorx, Dollar Universe and Sysload Community

  • 1.  [Solved] How to submit a ad-hoc job

    Posted Apr 14, 2011 06:09 PM
    Hi all,

    Our developers want to be able to submit a job (consisting of CPU, USER, SCRIPT). We do not want to create a UPROC and/or SESSION for this. Is there a way to launch a job like this quickly. We are thinking of 30s turn-around ... to launch it ... not to finish it.

    Thanks in advance!


  • 2.  [Solved] How to submit a ad-hoc job

    Posted Apr 28, 2011 05:06 AM
    Hi,

    You can prepare for them one single uproc named let say U_MODEL having as uproc variables  : the path of your script ($SUBFILE) and as many parameters as you need (PARM*). The internal script of the uproc would be something like :
    PARM="${PARM1} ${PARM2} ${PARM3} ${PARM4} ${PARM5} ${PARM6} ${PARM7} ${PARM8} ${PARM9} ${PARM10}"
    ${SUBFILE} ${PARM}
    exit $?

    This uproc has to be created just once for good. Then your developer would just have to run such a command (with DU environement loaded of course) to run any script on any $U node with any user :

      $UXEXE/uxadd FLA EXP UPR={U_MODEL} vupr=000 mu={CPU} node= {CPU} user={USER} pdate={TODAY} LAUNCHVAR="((SUBFILE,{SCRIPT}),(PARM1, $PARM1), (...))"

    Hope it helps

    François


  • 3.  [Solved] How to submit a ad-hoc job

    Posted Apr 28, 2011 10:58 AM
    Hello,

    François's solution should do the trick /smile.png' class='bbc_emoticon' alt=':)' />

    And remember that a job in Dollar Universe is nothing else than a Uproc, so you definitely need at least one Uproc!

    Michel