Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #24493

Re: Health related - linux please help

From Lew Pitcher <lew.pitcher@digitalfreehold.ca>
Newsgroups comp.os.linux.misc
Subject Re: Health related - linux please help
Followup-To comp.os.linux.misc
Date 2018-09-12 13:27 -0400
Organization The Pitcher Digital Freehold
Message-ID <pnbial$944$1@dont-email.me> (permalink)
References <pnai0a$1pu9$1@gioia.aioe.org>

Followups directed to: comp.os.linux.misc

Show all headers | View raw


Ferannia wrote:

> It's about an elderly gentleman who is quite active on internet, but he
> loves to click on every file and link he receives, yet he pay his bills
> online - hence the linux is installed on his PC.
> 
> He has a very weak heart.
> 
> I am looking for any linux mailer, or mailer's scripting trick, or other
> application which will initiate a mailer to send an alert message to
> couple of addresses if he doesn't respond to application's call within a
> given time frame.
> 
> Please, does it exist ? For ex. mailer's pop-up dialog which he'll have
> to hit and close within 10 hours after it shows up on his screen. If he
> doesn't hit OK button, an email message will be sent to couple of his
> relatives to check up on him.
> 
> Has anyone ever heard about such a mailer or other application ?
> 
> I am not a programmer, so I am unable to code anything similar, but I
> hope there is an application or a mailer available which can do that. I
> have meager knowledge in bash scripting.
> 
> Thank you.

Something like this might suffice

  #!/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

substituting, of course, the appropriate commandline email client.
Put this sort of script in your friend's desktop startup scripts, and make 
sure that the email system is configured properly.

-- 
Lew Pitcher
"In Skills, We Trust"

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Health related - linux please help Ferannia <ferannia@mouse-potato.com> - 2018-09-12 01:16 -0700
  Re: Health related - linux please help The Natural Philosopher <tnp@invalid.invalid> - 2018-09-12 11:53 +0100
    Re: Health related - linux please help Joe Beanfish <joebeanfish@nospam.duh> - 2018-09-12 13:37 +0000
  Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-12 08:28 -0400
    Re: Health related - linux please help Jean-David Beyer <jeandavid8@verizon.net> - 2018-09-12 09:21 -0400
    Re: Health related - linux please help Dan Espen <dan1espen@gmail.com> - 2018-09-12 09:22 -0400
      Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-12 11:06 -0400
        Re: Health related - linux please help Eli the Bearded <*@eli.users.panix.com> - 2018-09-12 18:11 +0000
        Re: Health related - linux please help Dan Espen <dan1espen@gmail.com> - 2018-09-12 15:35 -0400
  Re: Health related - linux please help Sylvain Robitaille <syl@alcor.concordia.ca> - 2018-09-12 15:31 +0000
  Re: Health related - linux please help "Carlos E. R." <robin_listas@es.invalid> - 2018-09-12 12:14 -0400
    Re: Health related - linux please help "Carlos E. R." <robin_listas@es.invalid> - 2018-09-12 16:50 -0400
      Re: Health related - linux please help Joe Beanfish <joebeanfish@nospam.duh> - 2018-09-13 13:41 +0000
        Re: Health related - linux please help The Natural Philosopher <tnp@invalid.invalid> - 2018-09-14 06:18 +0100
  Re: Health related - linux please help Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2018-09-12 13:27 -0400
  Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-12 15:12 -0400
    Ping Dave Hodgins (was Re: Health related - linux please help) Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2018-09-12 20:24 -0400
    Re: Health related - linux please help Jean-David Beyer <jeandavid8@verizon.net> - 2018-09-12 20:40 -0400
    Re: Health related - linux please help "Carlos E. R." <robin_listas@es.invalid> - 2018-09-12 21:36 -0400
      Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-13 02:41 -0400
        Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-13 02:45 -0400
        Re: Health related - linux please help Rich <rich@example.invalid> - 2018-09-13 11:25 +0000
          Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-13 08:16 -0400
            Re: Health related - linux please help Jean-David Beyer <jeandavid8@verizon.net> - 2018-09-13 11:01 -0400
              Re: Health related - linux please help Wouter Verhelst <w@uter.be> - 2018-09-14 11:14 +0200
          Re: Health related - linux please help Richard Kettlewell <invalid@invalid.invalid> - 2018-09-13 16:08 +0100
            Re: Health related - linux please help "Carlos E. R." <robin_listas@es.invalid> - 2018-09-13 22:51 -0400
              Re: Health related - linux please help Eli the Bearded <*@eli.users.panix.com> - 2018-09-14 06:28 +0000
                Re: Health related - linux please help "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2018-09-14 06:07 -0400
                Re: Health related - linux please help Eli the Bearded <*@eli.users.panix.com> - 2018-09-14 21:35 +0000
                Re: Health related - linux please help Jean-David Beyer <jeandavid8@verizon.net> - 2018-09-14 20:20 -0400
                Re: Health related - linux please help Eli the Bearded <*@eli.users.panix.com> - 2018-09-15 18:36 +0000
                Re: Health related - linux please help "Carlos E. R." <robin_listas@es.invalid> - 2018-09-14 16:37 -0400
                Re: Health related - linux please help Eli the Bearded <*@eli.users.panix.com> - 2018-09-14 21:45 +0000
    Re: Health related - linux please help tom <tom@0.0.0.0> - 2018-09-23 11:39 -0700
      Re: Health related - linux please help Rich <rich@example.invalid> - 2018-09-23 20:12 +0000

csiph-web