Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-6127

RH134-98: Chapter 4, use watch instead of while-loop for atq monitoring?

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Minor Minor
    • RH134 - RHEL 8 1 20190507
    • RH134 - RHEL 7 0
    • RH134
    • None
    • 4

      URL:
      Reporter RHNID:
      Section: -
      Language: ||||||||
      Workaround:

      Description: In topic: ⁠4.2. Practice: Scheduling One-Time Tasks with at
      we are using this command:

      [student@desktopX ~]$ while [ $(atq | wc -l) -gt 0 ]; do sleep 1s; done

      Won't be better replace for an easier one ?, like

      [student@desktopX ~]$ watch atq

      After all, Bash programming is in the next course

              rht-vcostea Victor Costea (Inactive)
              hardybo Hardy Beltran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: