sircrazy wrote:

you have to put it in a script to have it work in crontab:

#!/bin/bash
xmessage 'message here'

also make sure the script is executable: chmod +x <filename>

ive done that. the script was almost exactly the same as that. i gave it the proper permissions i think it may be my path though.

15 * * * * /home/gabe/Desktop/level_1/xmessage.sh

and still nothing.

i can get xmessage to work when i run it in terminal but i cant get it run from crontab. Ill keep looking into it and i will let anyone know if i figure it out.

also Xmessage is actually really cool and think i could have a lot of fun with it big_smile thank you very much for that.

Hello everyone im a noobish person at linux and i started messing around with crontab a little and im guessing much like all of you the moment you learned about it your mind starting thinking about all the pranks you could pull on co-workers/family members/spouses but doing something like.

10 * * * * reboot

could be a little harsh and annoying considering how i would have to  fix it. But for me i have a better idea. i want to make a message pop up ever 15 minutes saying something silly such as
"WARNING RADIATION LEAK!" or
"Caution, due to the amount of time you have spent on facebook the cookies have filled up and in order to make room your system must begin deleting ever all your personal Photos, word documents, and music files. Thank you."
You see nothing to serious but would make me get a kick for a couple hours, But i am stuck with this. I am not sure how to write a bash script that will display a message on the screen let alone on another users screen. if you have any other ideas other then bash scripts i am definitely willing to learn big_smile
If there is anyone out there that can help with this it would be greatly appreciated