shelluniverseu2

Call UniVerse Command from Shell


I have a UniVerse (Rocket U2) system, and want to be able to call certain UniVerse/TCL commands from a shell script. However whenever I run the uv binary it seems to stop the execution of the rest of the shell script.

For Example if I run: /u2/uv/bin/uv

It starts a UniVerse session. The next line of the script (RUNPY run_tests.py) is meant to be executed in the TCL environment, but is never input to TCL. I have tried passing in string parameters to the uv binary to be executed, but doesn't appear to do anything.

Is there a way to call UniVerse/TCL commands from a UNIX/Shell environment?


Solution

  • You can type this manually or put it into a shell script. I have not run into any issues with this paradigm, but your choice of shell could theoretically affect this. You certainly want to either be in the directory of the account you want execute it in or cd to it in the script.

    /u2/uv/bin/uv <<start
    RUNPY run_tests.py
    start
    

    Good Luck.