• [gentoo-user] source profile.env from non-interactive shell

    From ralfconn@21:1/5 to All on Sun Jan 8 19:10:01 2023
    Hello,

    I have a bash script executed from cronie's anacron daemon which
    performs a local rsync backup and then emails the status via nullmailer
    . The latter part never worked until I understood that some
    nullmailer-inject options that I set via environment variables are not
    visible from the bash script when spawned by anacron (all was fine from
    an interactive shell). Adding a 'source /etc/profile.env' to the bash
    script solved the issue.

    Are there any contraindication to sourcing the whole profile.env from a non-interactive shell? Potential security issues?

    thanks,

    raffaele

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)