the ultimate solution:
copy all current user environment variables to crontab.
to run notify-send
you have to set DBUS_SESSION_BUS_ADDRESS
to run other gui programs you set DISPLAY
and XAUTHORITY
wall
works for tmux
and ssh sessions but not gnome-terminal
.
in kde everything works fine. install konsole instead.
script for monitoring disk usage:
1 |
|