New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen to incoming SMS? #22

mihojudi opened this Issue May 5, 2016 · 2 comments


None yet
2 participants

mihojudi commented May 5, 2016

Hello! I would like to implement the following:
When SMS arrives, my computer shows me a notification with it's text and sender.
That's how I see the implementation: using termux, somehow listen to incoming sms, and if sms comes, parse termux-sms-inbox output and pipe it to netcat, on desktop listen to netcat and handle incoming info. Could you please give me a piece of advice on how to listen to incoming sms? Of course, I can run termux-sms-inbox regularly and compare output, but it doesn't seem to be an effective way of doing it. Thanks in advance.


This comment has been minimized.


Neo-Oli commented Jul 6, 2016

You could use Tasker for this.

  1. Make a Script that reads the most recent SMS and does your netcat thing.
  2. Save it in ~/.shortcuts/FILENAME
  3. Install Termux:Widget, Tasker and AutoShortcut
  4. Setup a new Profile in Tasker. Set it to "Text received.".
  5. As Task set AutoShortcut. Then choose "Single Shortcut" (with the Termux Icon) and choose your script.

Now everytime you receive a SMS your Script gets called.


This comment has been minimized.

mihojudi commented Jul 10, 2016

Thank you very much!

@mihojudi mihojudi closed this Jul 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment