Cron notification issue / spam

the thing is i’m receiving mail notifications every 2 or so minutes from cron, some reach to the set email and others just get frozen into the exim queue so i have to be deleting them.

they come from these:

  • sudo /usr/local/hestia/bin/v-update-sys-queue restart
  • sudo /usr/local/hestia/bin/v-update-sys-rrd
  • sudo /usr/local/hestia/bin/v-backup-users

all of them with the same message :

/etc/profile: line 36: bind: warning: line editing not enabled
/etc/profile: line 37: bind: warning: line editing not enabled
/etc/profile: line 41: bind: warning: line editing not enabled
/etc/profile: line 42: bind: warning: line editing not enabled

and that correspond to these lines in the file:

36 bind ‘"\e[A"’:history-search-backward
37 bind ‘"\e[B"’:history-search-forward
alias vi=‘vim’
#===========================================
#== bash tuning ============================
41 bind ‘"\e[A"’:history-search-backward
42 bind ‘"\e[B"’:history-search-forward

as you may think these notifications are spamming me.
the turn off notification option in the cron settings seems to have no effect over them. since I’m not sure what i should do…

what the real problem is? should I just silence them? :thinking:

thanks.

1 Like

the real problem are those bind commands you put into the global profile. :wink:
they are only useful in an interactive shell - which cron does not use.

either get that … out of that file and maybe put it to the local users profiles/bashrc if they really need it and/or wrap it into an IF check for an interactive shell.

see https://www.gnu.org/software/bash/manual/html_node/Is-this-Shell-Interactive_003f.html
or maybe try something along the lines of

if [[ “$-” =~ “i” ]] ; then …
3 Likes

I fixed by adding if and then to those bind lines. now is ok.
know if they were harmful to silence or do something about was my reason to worry. thanks

not sure if this was hestia related.
this was on a fresh install of it on debian9 btw.
thanks again.

just to clarify, that’s definitely not Hestia related :wink:

if you didn’t edit these things into the /etc/profile yourself then it might have been added by something else you installed alongside hestia or that already has been deployed through the OS template you were provided with to setup this box.
after all the commented lines with the ‘bash tuning’ don’t come out of the box with deb 9 - that’s for sure…

2 Likes