Call a shell script (.sh) from a tps proc

Homepage Clovertech Forums Cloverleaf Call a shell script (.sh) from a tps proc

  • Creator
    Topic
  • #120694
    RICK L. PRITCHETT
    Participant

    Looking to call a shell script from a tps proc.  It looks to be hanging in the testing tool.  I have tried the following when calling the script.

    exec /hci/cis19.1/integrator/scripts/tps_alerts/blockproddata.sh $thdName $site

    exec {/hci/cis19.1/integrator/scripts/tps_alerts/blockproddata.sh $thdName $site}

Viewing 1 reply thread
  • Author
    Replies
    • #120695

      Always use the tcl catch command when calling exec.

      -- Max Drown (Infor)

    • #120696
      Charlie Bursell
      Participant

      First, I would change path to something like:
      $::HciSiteDir/scripts/tps_alerts/…..   to make it available to furfure versions of Cloverleaf.  If You had the script in the scripts directory you would not need the path at all, just the script name since the scripts directory is in your path environment.

      Then, run the script in the background  by appending an & at the end.  The script is  hanging waiting for action

      Then, as Max said, it is always safer to use a catch just in case.

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10