cron pstart error

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf cron pstart error

  • Creator
    Topic
  • #51072
    Chris Williams
    Participant

      As we migrate Cloverleaf from HP-UX over to Linux (Red Hat), when attempting to do a pstart under cron:

      Quote:

      hcicmd -p cai -c “CERNCHRG pstart”


      we get the following in the cron output for this and other ob threads that have a destination of file:

      Quote:

      Response:

      pstart issued for thread ‘CERNCHRG’

      Notifying xlate threads of protocol threads startup

      sh: -c: line 0: syntax error near unexpected token `2′

      sh: -c: line 0: `hcixlatenotify xrel_post CERNCHRG >  2>&1 &’


      This seems to be something internal to Cloverleaf or cron. Has anyone encountered this before?

    Viewing 2 reply threads
    • Author
      Replies
      • #68689
        David Barr
        Participant

          Where are you setting your Cloverleaf root and site?

        • #68690
          Sam Craig
          Participant

            Chris,

            Here is some code from our crontab to start a thread….

            ## Setup hci environment

            export ROOT=”/quovadx/qdx5.5/integrator”

            export FPATH=$FPATH:/quovadx/qdx5.5/integrator/kshlib

            export PATH=$PATH:$ROOT/bin

            export SITE=”pimprod”

            setroot $ROOT

            ## Run the setsite command to the region you want to process

            setsite $SITE

            ## Start the thread

            /quovadx/qdx5.5/integrator/bin/hcicmd -p process_2 -c “nextgen5_ob pstart”

          • #68691
            Chris Williams
            Participant

              Finally got this resolved. It was the crontab environment that was missing DEV_NULL=/dev/null.

              hcicmd calls hcixlatenotify with

              Code:

              system( “hcixlatenotify xrel_post $thds > $ENV{’DEV_NULL’} 2>&1 &” );

              but it was resolving to

              Code:

              hcixlatenotify xrel_post CERNCHRG >  2>&1 &

              causing the redirection to fail.

              Thanks for pointing me in the right direction.

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.