Server IP : 104.21.14.103 / Your IP : 3.133.129.70 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_Cron_User = let s = "[email protected] 31 * * * * ${HOME}/bin/stuff 54 16 * * * /usr/sbin/tmpwatch -umc 30d ${HOME}/tmp\n" let lns = Cron_User.lns test lns get s = { "MAILTO" = "[email protected]" } { "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"