Cron: Difference between revisions

imported>Sjau
No edit summary
imported>Makefu
No edit summary
Line 21: Line 21:


<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">
       "*/10 * * * *  johndoe  . /etc/profile; /run/current-system/sw/bin/r2e run"
       "*/10 * * * *  johndoe  . /etc/profile; ${pkgs.rss2email}/bin/r2e run"
</syntaxHighlight>
</syntaxHighlight>


Line 31: Line 31:


<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">
       "0 * * * *      johndoe  out=$( /run/current-system/sw/bin/pass git pull 2>&1 ) || echo $out"
       "0 * * * *      johndoe  out=$( ${pkgs.pass}/bin/pass git pull 2>&1 ) || echo $out"
</syntaxHighlight>
</syntaxHighlight>