[opensuse] Yes, I'm alive app? Or "dead man button app"
Hi, Somebody is asking an interesting question on usenet, and I'll ask it here in his stead. He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running. Does somebody know of one such? -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/12/2018 12:14 PM, Carlos E. R. wrote:
Hi,
Somebody is asking an interesting question on usenet, and I'll ask it here in his stead.
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/09/2018 12.18, James Knott wrote:
On 09/12/2018 12:14 PM, Carlos E. R. wrote:
Hi,
Somebody is asking an interesting question on usenet, and I'll ask it here in his stead.
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate.
Sure, I can code it myself, but he can't, and I wondered if it exists already. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
On 12/09/2018 12.18, James Knott wrote:
On 09/12/2018 12:14 PM, Carlos E. R. wrote:
Hi,
Somebody is asking an interesting question on usenet, and I'll ask it here in his stead.
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate.
Sure, I can code it myself, but he can't, and I wondered if it exists already.
There is probably a website that offers that. https://www.deadmansswitch.net/ -- Per Jessen, Zürich (23.9°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/09/2018 13.29, Per Jessen wrote:
Carlos E. R. wrote:
On 12/09/2018 12.18, James Knott wrote:
On 09/12/2018 12:14 PM, Carlos E. R. wrote:
Hi,
Somebody is asking an interesting question on usenet, and I'll ask it here in his stead.
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate.
Sure, I can code it myself, but he can't, and I wondered if it exists already.
There is probably a website that offers that.
I'll tell him, thanks. But he wants faster activation, like 10 hours. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/12/2018 04:49 PM, Carlos E. R. wrote:
On 12/09/2018 13.29, Per Jessen wrote: /snip/
Hi,
Somebody is asking an interesting question on usenet, and I'll ask it here in his stead.
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate. Sure, I can code it myself, but he can't, and I wondered if it exists already. There is probably a website that offers that.
I'll tell him, thanks. But he wants faster activation, like 10 hours.
I didn't see the original of this thread, but whoever said 10 hours is more reasonable. The suggested website shows 30 DAYS to start with! My body would be eaten by my dog and the dog would have starved way before that! Maybe 24 to 36 hours would be a reasonable time period. Should be choosable. Should be easily reset or paused if a holiday or vacation should be in the schedule. If someone writes a script to do that, it should contain email addresses and a place for such messages. Hopefully would be usable on any Linux system, not dependent on a specific one. Please send me the program if you write one! Doug--quite old! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/09/2018 19.44, Doug wrote:
On 09/12/2018 04:49 PM, Carlos E. R. wrote:
On 12/09/2018 13.29, Per Jessen wrote: /snip/
Hi,
Somebody is asking an interesting question on usenet, and I'll ask it here in his stead.
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate. Sure, I can code it myself, but he can't, and I wondered if it exists already. There is probably a website that offers that.
I'll tell him, thanks. But he wants faster activation, like 10 hours.
I didn't see the original of this thread,
You have it in the quotes at the start of your email ;-)
but whoever said 10 hours is more reasonable. The suggested website shows 30 DAYS to start with! My body would be eaten by my dog and the dog would have starved way before that! Maybe 24 to 36 hours would be a reasonable time period. Should be choosable. Should be easily reset or paused if a holiday or vacation should be in the schedule. If someone writes a script to do that, it should contain email addresses and a place for such messages. Hopefully would be usable on any Linux system, not dependent on a specific one.
Yes, 10 hours to send help. In Spain, on some cities you can get the social workers to call old people daily.
Please send me the program if you write one!
Doug--quite old!>
On usenet, this has been suggested: #!/bin/sh # How long the friend has before the message times out, in seconds TIMEOUT=36000 # The email address(es) to send a notice to EMAIL=email@example.com otheremail@somewhere.else if xmessage -buttons "Yes I am:1,I need help:0" \ -default "I need help" \ -timeout $TIMEOUT -nearmouse "Are you well?" then echo "Your friend failed to confirm his health at $(date)" | mailx -s "Your friend requires help" $EMAIL xmessage -timeout 30 -nearmouse "I have sent an alert message to $EMAIL" fi # END of script -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Carlos E. R. wrote:
On 12/09/2018 19.44, Doug wrote:
On 09/12/2018 04:49 PM, Carlos E. R. wrote:
On 12/09/2018 13.29, Per Jessen wrote: /snip/
Hi,
He needs a "dead man button" application or script. If someone press the button, nothing is done. If not pressed for, say, 10 hours, send an email. Maybe send another periodically to confirm it is running.
Does somebody know of one such?
Not off hand, but it shouldn't be hard to do with a shell script. There are calls that can open a message on the screen etc.. Then wait for a response and loop as appropriate. Sure, I can code it myself, but he can't, and I wondered if it exists already. There is probably a website that offers that.
I'll tell him, thanks. But he wants faster activation, like 10 hours.
I didn't see the original of this thread,
You have it in the quotes at the start of your email ;-)
but whoever said 10 hours is more reasonable. The suggested website shows 30 DAYS to start with! [snip]
Yes, 10 hours to send help.
I guess that website is not intended as an _emergency_ button, for calling help etc.
In Spain, on some cities you can get the social workers to call old people daily.
[off-topic] Here it is quite common for an elderly person living at home, perhaps someone who is not very mobile, to have an emergency button on a wristband. What it might look like: https://www.auforum.ch/armbandsender.html There are many different systems/services: https://www.redcross.ch/de/srk-dienstleistungen/rotkreuz-notruf/sicherheit-r... https://smartlife-care.ch/de/notrufgeraete/promotion/ https://www.smartliberty.ch/de_DE/page/appelmalademobile https://veroval.info/de-ch/products/easy-life/l/ch/aktionsseite-easy-life http://www.senioren-notruf.ch/ http://www.seniorennotruf-schweiz.ch/ -- Per Jessen, Zürich (17.7°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/09/2018 02.26, Per Jessen wrote:
Carlos E. R. wrote:
On 12/09/2018 19.44, Doug wrote:
On 09/12/2018 04:49 PM, Carlos E. R. wrote:
There is probably a website that offers that.
https://www.deadmansswitch.net/ ... but whoever said 10 hours is more reasonable. The suggested website shows 30 DAYS to start with! [snip]
Yes, 10 hours to send help.
I guess that website is not intended as an _emergency_ button, for calling help etc.
Right.
In Spain, on some cities you can get the social workers to call old people daily.
Should have said "phone".
[off-topic] Here it is quite common for an elderly person living at home, perhaps someone who is not very mobile, to have an emergency button on a wristband. What it might look like:
Yes, here too. And it is possible some of them send and automated alarm if they detect no movement for some time. Might even detect the pulse. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hello, Am Donnerstag, 13. September 2018, 03:38:00 CEST schrieb Carlos E. R.:
On usenet, this has been suggested:
#!/bin/sh # How long the friend has before the message times out, in seconds TIMEOUT=36000
# The email address(es) to send a notice to EMAIL=email@example.com otheremail@somewhere.else
I hope you have the most important mail address first, because # EMAIL=email@example.com otheremail@somewhere.else bash: otheremail@somewhere.else: command not found EMAIL="email@example.com otheremail@somewhere.else" will work much better ;-)
if xmessage -buttons "Yes I am:1,I need help:0" \ -default "I need help" \ -timeout $TIMEOUT -nearmouse "Are you well?" then echo "Your friend failed to confirm his health at $(date)" | mailx -s "Your friend requires help" $EMAIL
Just for completeness - Using $EMAIL without quotes is correct here.
xmessage -timeout 30 -nearmouse "I have sent an alert message to $EMAIL" fi # END of script
Regards, Christian Boltz PS: random signature - but I'll probably need to check if fortune's signature picker is really random, or if it has started reading my mails and developed some AI to pick matching signatures ;-) -- <victorhck> "currently running an inferior operating system" aka Windows <ancor> victorhck: are you ok? Do you want us to call someone? [from #opensuse-project] -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 13/09/2018 15.58, Christian Boltz wrote:
Hello,
Am Donnerstag, 13. September 2018, 03:38:00 CEST schrieb Carlos E. R.:
On usenet, this has been suggested:
...
# END of script
Thanks for the corrections :-)
PS: random signature - but I'll probably need to check if fortune's signature picker is really random, or if it has started reading my mails and developed some AI to pick matching signatures ;-)
-- <victorhck> "currently running an inferior operating system" aka Windows <ancor> victorhck: are you ok? Do you want us to call someone? [from #opensuse-project]
ROTFL! -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.0 (Legolas)) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (5)
-
Carlos E. R.
-
Christian Boltz
-
Doug
-
James Knott
-
Per Jessen