How to make PTM timer alert me every 20 mins?
How to make PTM timer alert me every 20 mins?
I need PTM timer to alert me every 20 mins. How?
I tried xwrits but it's unreliable software. You run it and when it feels like it it'll work, it doesn't, just makes me sick.
So puppy has something better than all. That's PTM timer. for example Xwrits doesn't sound an alarm but PTM timer can. To utilize PTM timer, how do I make it to alert me every 20 mins e.g. with a linux command?
I have searched for other solutions such as above xwrits(unreliable) and another called workrave that's only meant for programmers even installation is complex compiling. Thanks in advance for your help
I tried xwrits but it's unreliable software. You run it and when it feels like it it'll work, it doesn't, just makes me sick.
So puppy has something better than all. That's PTM timer. for example Xwrits doesn't sound an alarm but PTM timer can. To utilize PTM timer, how do I make it to alert me every 20 mins e.g. with a linux command?
I have searched for other solutions such as above xwrits(unreliable) and another called workrave that's only meant for programmers even installation is complex compiling. Thanks in advance for your help
Last edited by wert on Mon 14 Mar 2016, 08:45, edited 1 time in total.
Thanks dude. BTW how do I make it run every 20 mins? Have pshedule gui omly contains predefined time sets e.g I click 20 under minutes and it says run every hour at XXhours:20 mins. No way to make it every 20 mins dude. Thanks in advanceSemme wrote:Simple and works. Your sound, your message..
PLus I can't just divvy up 60 by 20 and assign 20, 40 upto 1hr etc., due to the fact that I don't begin using pc at precise o'clocks e.g 2:00 like the cron works. Each time I start puppy, I need it from that minute to start alerting me every 20 mins dude
I am no scriptor.
This is just logic I derived from watching some script.
At end of your script try addingreplace x with number of seconds you want to wait the script to repeat itself.
But I do belive it will add the time taken to run the script too.
So you may have to reduce the x value slightly.
This is purely a guess.
But just give it a try.
This is just logic I derived from watching some script.
At end of your script try adding
Code: Select all
sleep x
But I do belive it will add the time taken to run the script too.
So you may have to reduce the x value slightly.
This is purely a guess.
But just give it a try.
Wait I found something good.
Do make script likeReplace command with your alert command. It will repeat every 1200 seconds.
And place that script in /root/Startup.
Do make script like
Code: Select all
watch -n1200 command
And place that script in /root/Startup.
I wrote ptm timer. It was my first program
It should be easy to make it repeat by just relaunching itself automatically.
I'll make the change and post the program.
pclock has a countdown feature that repeats.
__________________________________________
It should be easy to make it repeat by just relaunching itself automatically.
I'll make the change and post the program.
pclock has a countdown feature that repeats.
__________________________________________
HI wert,
Found out how to eliminate the addition of time taken to complete command in the self-repeating script.
Make your script as followsReplace the "command" with your alert command or script address.
Place this script in /root/Startup.
Done.
I tested this withEdit: I forgot to mention that this script creates a gxmessage window every 5 seconds with current date and time in it.
I ran it from terminal and to kill it I just killed the terminal.
Found out how to eliminate the addition of time taken to complete command in the self-repeating script.
Make your script as follows
Code: Select all
#!/bin/sh
while sleep 1200; do (command &) ; done
Place this script in /root/Startup.
Done.
I tested this with
Code: Select all
#!/bin/sh
while sleep 5; do (date=`date` && gxmessage $date &) ; done
I ran it from terminal and to kill it I just killed the terminal.
Code: Select all
#!/bin/sh
while sleep 1200; do (txt="Woof" && gxmessage $txt & aplay ~/puppy-reference/audio/2barks.wav &) ; done
I would advise changing it todrunkjedi wrote:HI wert,
Found out how to eliminate the addition of time taken to complete command in the self-repeating script.
Make your script as followsReplace the "command" with your alert command or script address.Code: Select all
#!/bin/sh while sleep 1200; do (command &) ; done
Place this script in /root/Startup.
Done.
I tested this withEdit: I forgot to mention that this script creates a gxmessage window every 5 seconds with current date and time in it.Code: Select all
#!/bin/sh while sleep 5; do (date=`date` && gxmessage $date &) ; done
I ran it from terminal and to kill it I just killed the terminal.
Code: Select all
while sleep 5; do (date=`date` && gxmessage -timeout 3 $date &) ; done
Thanks,
Andy
Slacko 6.3.0 FULL INSTALL
JWM
File Manager - Thunar
Andy
Slacko 6.3.0 FULL INSTALL
JWM
File Manager - Thunar