Menu

dif groups and cron

Help
Fox
2001-04-03
2001-04-03
  • Fox

    Fox - 2001-04-03

    is it possible to add more then 1 group to read

    also whats the best way to setup a cron tab to run brag between say 2am to 11am

     
    • Akos Polster

      Akos Polster - 2001-04-03

      Only one group at a time, but of course you can
      start a separate process for each group:

        0 2 * * * for group in a b c; do brag -g $group; done

      To stop all running brags at 11am:

        0 11 * * * kill `ps -ef|grep brag|grep -v grep|awk '{print $1'}`

      On some OSs, you may have to use "ps aux" instead of
      "ps -ef" .

       

Log in to post a comment.

MongoDB Logo MongoDB