cron job hangs

  • Creator
    Topic
  • #50197
    Roman Partigula
    Participant

      Hi

      I got a problem with my daily cycling script


      I run the following command in loop

      hcicmd -p myproc -c “conn save_cycle out”

      then I do renaming all all *old.idx and * old.msg files

      to *old.$date_time.idx and  *old.$date_time.msg

      using unix ‘find’ command

      find $HCISITEDIR/exec/processes -name “*.old.idx” -type f -exec $HCIROOT/scripts/mvsmatfile {} “;” 2> $HCIROOT/scripts/adtcycle.err

      find $HCISITEDIR/exec/processes -name “*.old.msg” -type f -exec $HCIROOT/scripts/mvsmatfile {} “;” 2> $HCIROOT/scripts/adtcycle.err

      During this ‘find’ command my cron job hangs. There are no error messages.

      It started recently when number of threads on our site rose to 38

      the only thing what helps is to reboot server. But week later the problem is back

      When I kill this process and run this line from command line it works OK

      Any advice?

      thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #65170
        Kevin Kinnell
        Participant

          Do any of the files end up renamed?

        • #65171
          Michael Hertel
          Participant

            Are you missing a ?

            -exec $HCIROOT/scripts/mvsmatfile {} ;

        Viewing 1 reply thread
        • The forum ‘Operating Systems’ is closed to new topics and replies.