Tag Info

Hot answers tagged

4

You can use DISPLAY=:0 notify-send `cat filename.txt` To display a message on screen. crontab itself doesn't know where to print that file. It has no terminal attached. Also it doesn't know to which DISPLAY to put info, so I put it manually.


3

You don't have the necessary permissions to read other users' crontabs, either run as root or use sudo to invoke crontab -u, e.g. for user in $(cut -f1 -d: /etc/passwd); do sudo crontab -u $user -l; done or awk -F: '{print $1}' /etc/passwd | xargs -n1 sudo crontab -lu


1

If you have a fully qualified domain name for your server, this message should go away. In /etc/hosts, you can define a FQDN like ubun.somedomain.tld : 127.0.0.1 localhost 127.0.0.1 ubun.example.com ubun To apply the new host name without rebooting the system type (after having changed the /etc/hosts file) : $ sudo hostname ubun.example.com Then check ...



Only top voted, non community-wiki answers of a minimum length are eligible