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


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

Re: sending a "beep" from computer to mobile phone?

Subject Re: sending a "beep" from computer to mobile phone?
Newsgroups comp.os.linux.misc
References <u6g8fjx92i.ln2@Telcontar.valinor>
From "27E.G756" <27E.G756@noq24u.net>
Organization anode intersection
Date 2023-03-28 22:07 -0400
Message-ID <Gx6dnazcDuz8AL75nZ2dnZfqn_SdnZ2d@earthlink.com> (permalink)

Show all headers | View raw


On 3/27/23 8:53 AM, Carlos E.R. wrote:
 > Hi,
 >
 > Do you know of an app, to be installed on an Android phone, that can
 > receive some kind of notification or ping from a Linux computer, in the
 > same LAN, from a script?
 >
 > Like for telling me some job ended, whatever. Not internet, the LAN is
 > sufficient.

   You could write a simple client/server setup to
   do that. Just listens on a TCP or UDP port for
   the correct sequence. For your app UDP might be
   the cleaner way, not as many hacks probing.

   Lots of sample client/server code on the net,
   Python and 'C'. I've built a number of useful
   things on those foundations. A non-blocking
   might be best, lets you dump odd 'noise' more
   easily. Python is pretty damned easy - but
   you've gotta encode()/decode() in order to
   deal with binary. 'C' and FPC have a 'timer'
   so you can break from the listening routine
   and do other stuff (outright or as a subproc)
   before returning to listening.

   The dead-simple client/server would do very
   well - you don't need threaded servers or
   forking servers or any of the other variants
   meant for higher volume traffic. That means
   a very small service routine. Just start with
   one of the sample 'echo' servers - where what
   you send gets reflected back - and it only
   takes a few tweaks.

   Bash and ksh have an obscure syntax for sending
   and receiving to a /dev/tcp pseudo-device - and
   I use it in several scripts. Probably THE easiest
   way for what you're trying to do. Would not be
   limited to a LAN either if you put the right
   rule in the firewall.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Find similar


Thread

sending a "beep" from computer to mobile phone? "Carlos E.R." <robin_listas@es.invalid> - 2023-03-27 14:53 +0200
  Re: sending a "beep" from computer to mobile phone? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2023-03-27 18:13 +0000
    Re: sending a "beep" from computer to mobile phone? "Carlos E.R." <robin_listas@es.invalid> - 2023-03-28 00:33 +0200
  Re: sending a "beep" from computer to mobile phone? Andreas Kohlbach <ank@spamfence.net> - 2023-03-27 17:08 -0400
    Re: sending a "beep" from computer to mobile phone? "Carlos E.R." <robin_listas@es.invalid> - 2023-03-28 00:31 +0200
    Re: sending a "beep" from computer to mobile phone? "27E.G756" <27E.G756@noq24u.net> - 2023-03-28 22:08 -0400
  Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202303.rodent.frell.theremailer.net> - 2023-03-28 00:37 +0200
    Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@proton.me> - 2023-03-28 16:16 +0100
    Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202303.rodent.frell.theremailer.net> - 2023-03-29 01:16 +0200
      Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@Proton.Me> - 2023-03-29 22:43 +0100
        Re: sending a "beep" from computer to mobile phone? Rich <rich@example.invalid> - 2023-03-29 22:16 +0000
          Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@proton.me> - 2023-03-30 09:19 +0100
            Re: sending a "beep" from computer to mobile phone? Rich <rich@example.invalid> - 2023-03-30 13:04 +0000
      Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202303.rodent.frell.theremailer.net> - 2023-03-30 15:01 +0200
      Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202304.rodent.frell.theremailer.net> - 2023-04-01 19:33 +0200
      Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202304.rodent.frell.theremailer.net> - 2023-04-02 00:06 +0200
        Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@Proton.Me> - 2023-04-02 22:34 +0100
          Re: sending a "beep" from computer to mobile phone? "Carlos E.R." <robin_listas@es.invalid> - 2023-04-03 03:40 +0200
            Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@proton.me> - 2023-04-03 11:57 +0100
              Re: sending a "beep" from computer to mobile phone? "Carlos E.R." <robin_listas@es.invalid> - 2023-04-03 20:30 +0200
                Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@proton.me> - 2023-04-03 20:10 +0100
            Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202304.rodent.frell.theremailer.net> - 2023-04-03 21:07 +0200
              Re: sending a "beep" from computer to mobile phone? Pancho <Pancho.Jones@proton.me> - 2023-04-03 20:35 +0100
  Re: sending a "beep" from computer to mobile phone? Fritz Wuehler <fritz@spamexpire-202303.rodent.frell.theremailer.net> - 2023-03-28 03:26 +0200
    Re: sending a "beep" from computer to mobile phone? Joe Beanfish <joebeanfish@nospam.duh> - 2023-03-28 14:12 +0000
    Re: sending a "beep" from computer to mobile phone? "Carlos E. R." <robin_listas@es.invalid> - 2023-03-28 18:01 +0200
      Re: sending a "beep" from computer to mobile phone? Rich <rich@example.invalid> - 2023-03-28 17:07 +0000
        Re: sending a "beep" from computer to mobile phone? "Carlos E. R." <robin_listas@es.invalid> - 2023-03-28 21:00 +0200
          Re: sending a "beep" from computer to mobile phone? "27E.G756" <27E.G756@noq24u.net> - 2023-03-28 23:10 -0400
  Re: sending a "beep" from computer to mobile phone? "27E.G756" <27E.G756@noq24u.net> - 2023-03-28 22:07 -0400

csiph-web