Hi

Thank you. Applied and now also uploaded.

Best regards

// Ola

On 29 November 2017 at 12:22, Marc Haber
<[email protected]> wrote:
> Package: cron-apt
> Version: 0.11.0
> Severity: wishlist
> Tags: patch
>
> Hi,
>
> please consider the attached patch. It makes cron-apt save the mail
> message sent out in the log dir, allowing processes on the system to
> access the current last mail message that was generated by cron-apt.
>
> This can, for example, be used to output pending updates to a user
> logging in in their .profile without the delay that comes with actually
> invoking apt, or to generate a monitoring check warning for pending
> updates, also without imposing a delay because the information is
> already there.
>
> For example, I do have the followingin my .bash_profile:
>
> if [ -r /var/log/cron-apt/lastfullmessage ]; then
>   echo "-------------------"
>   < /var/log/cron-apt/lastfullmessage sed '/^---/,/^-----/d' | grep -vE 
> '^((CRON-APT|To:|Subject:|Reading|Building|Initializing|Writing|Need) .*)?$'
>   echo "-------------------"
> fi
>
> Greetings
> Marc



-- 
 --- Inguza Technology AB --- MSc in Information Technology ----
/  [email protected]                    Folkebogatan 26            \
|  [email protected]                   654 68 KARLSTAD            |
|  http://inguza.com/                Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---------------------------------------------------------------

Reply via email to