I just tested it as my normal user and this seems to work:
Code:
$ crontab -l
* * * * * /path/to/script.sh
script.sh consists of the following:
Code:
$ cat /path/to/script.sh
#!/bin/sh
/usr/bin/echo "Hello From Crontab" | /usr/bin/wall
I could get cron to perform the wall command but the message wasn't carrying through with my previous suggestions (it was just a blank message), and using quotes didn't seem to help the issue. This solution works, however.
An easy way to test whether or not cron is working is to delete your current crontab (`crontab -d`) and add the following line:
Code:
$ crontab -l
* * * * * DISPLAY=:0.0 /usr/bin/xmessage "Hello"
If you are in an X session, you'll get a dialog box popping up once a minute.