Welcome, guest | Sign In | My Account | Store | Cart

How many times have you been asked to remember to do something from the other half whilst she is out for a short while.

For example: "You WILL check the dinner every few minutes won't you?"

And how many times did/do you forget?

Most of us have been there...

This is a simple kids level, practical learning, shell script that generates an "xterm" with your reminder inside every 30 seconds for a period of 3 seconds.

It is always be the active front window for 3 seconds at a time to _annoy_ you into remembering.

Usage: reminder "What you have to remember here using spaces AND double quotes."<CR>

Just reanme the downloaded script to reminder and remember to chmod it as required.

Just run it from your default terminal and when finished press Ctrl-C just AFTER the xterm window closes.

There is NO error detection so steer clear of any special characters in you reminder text.

Enjoy finding simple solutions to often very difficult problems...

Bash, 22 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Usage: /full/path/to/reminder "Your text here with spaces inside double quotes."
text=$1
if [ "$1" == "" ]
then
	text="You have started reminder, what have you forgotten?"
	echo ""
	echo 'Usage: /full/path/to/reminder "Your text here with spaces inside double quotes."'
fi
> /tmp/reminder.sh
chmod 755 /tmp/reminder.sh
echo "#!/bin/sh" >> /tmp/reminder.sh
echo "printf '\033[1m\033[12;3f$text\033[0m\n\n\n'" >> /tmp/reminder.sh
echo "sleep 3" >> /tmp/reminder.sh
echo "exit 0" >> /tmp/reminder.sh
while true
do
	# Display your reminder for about 3 seconds...
	xterm -e /tmp/reminder.sh &
	# Use Ctrl-C to stop after xterm has closed down...
	sleep 30
done

I have forgotten SOOOO many times to do something whilst on the computer that this learning script was the result...

Have fun keeping the other half happy... ;oD

1 comment

Barry Walker (author) 9 years, 4 months ago  # | flag

I have no idea when or by whom this was voted up but thank you to that person...

You know who you are...

Again thanks...