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

RH134-508: RHT1843867 --- "Lab: Fix Boot Issues": the task about the recurring job: the grading script incorrectly assumes that there will be exactly one exactly whitespace separating the fields.

XMLWordPrintable

    • 12
    • ROLE
    • en-US (English)

      URL: https://role.rhu.redhat.com/rol-rhu/app/courses/rh199-9.0/pages/ch17s02
      Reporter RHNID: yuvaraj-rhls
      Section: comprehensive-review-review1-review - Lab: Fix Boot Issues and Maintain Servers
      Language: en-US (English)||||||||
      Workaround:

      Description: Description: Chapter 17, Lab 1, the task about the recurring job: the grading script incorrectly assumes that there will be exactly one exactly whitespace separating the fields. Meanwhile an admin can use more than one whitespace or (conventionally before the command field) one or more tab characters. Moreover, the current regular expression does not correctly escape * characters for the day of month and the month, which only works by accident because of the subsequent .* eating away everything until the whitespace before the path to the script. A more correct regex for grep -E in the grading script would look something like: 0[[:space:]]19-21[[:space:]]*[[:space:]]*[[:space:]].*[[:space:]]+/home/student/backup-home.sh

              glsbugs-hybridcloud@redhat.com PTL - RHEL Team
              yuvaraj-rhls yuvaraj b
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: