Advertisement
florin88

Picks sintassi

Jan 14th, 2015
2,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.46 KB | None | 0 0
  1. crontab_change(u)
  2.  
  3. init
  4.     status =piktstatus
  5.     level =piktlevel
  6.     task “Report changes in (u) crontabs”
  7.     input proc “if [ -e =hstdir/log/(u).crontab.bak ];
  8.     then =diff =hstdir/log/(u).crontab.bak =hstdir/log/(u).crontab
  9.     else =cat =hstdir/log/(u).crontab 2>/dev/null; fi”
  10.  
  11. begin
  12.     doexec wait “=crontab -u (u) -l > =hstdir/log/(u).crontab”
  13.  
  14. rule
  15.     output mail $inlin
  16.  
  17. end
  18.     doexec wait “=mv =hstdir/log/(u).crontab =hstdir/log/(u).crontab.bak”
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement