Giter Club home page Giter Club logo

Comments (3)

github-actions avatar github-actions commented on July 20, 2024

Thank you for contributing to make this project better😎 Please keep up and follow to solve this issue. Please feel free to draft a pull request here too to resolve this issue by tapping "new" at this link. Do not worry if it is not perfect on your first attempt. This is what pull requests are for, in order to better understand and to improve the published source code.

from termuxarch.

Adrastetion avatar Adrastetion commented on July 20, 2024

I found a non-essential solution to this issue.

The following shellscript, which is in a termux environment, receives command from TermuxArch via a text file.
(assuming existence of ~/storage/shared/temp/termux/cmd-from-arch.tmp)

#!/data/data/com.termux/files/usr/bin/bash

tmpdir=~/storage/shared/temp/termux 

if [ ! -f $tmpdir/.buf ]; then
  cat $tmpdir/cmd-from-arch.tmp > $tmpdir/.buf
  echo "" > $tmpdir/cmd-from-arch.tmp
  source $tmpdir/.buf 1> $tmpdir/cmd-rslt-to-arch.tmp
 2>&1
  rm -f $tmpdir/.buf
fi

and this crontab file executes above script in every 10 seconds

* * * * * for i in `seq 0 10 59` ; do (sleep ${i}; ~/script/cmd-inter-to-arch.sh) & done;

then we can run commands like this in TermuxArch environment to use (and get output of) termux command:

# (assume that "clpfoo" is set on Android clipboard)
$ echo termux-clipboard-get > /storage/emulated/0/temp/termux/cmd-from-arch.tmp
$ sleep 10
$ cat /storage/emulated/0/temp/termux/cmd-rslt-to-arch.tmp
clpfoo
$ echo "termux-clipboard-set 'clpbar'" > /storage/emulated/0/temp/termux/cmd-from-arch.tmp
$ echo termux-clipboard-get > /storage/emulated/0/temp/termux/cmd-from-arch.tmp
$ sleep 10
$ cat /storage/emulated/0/temp/termux/cmd-rslt-to-arch.tmp
clpbar

However, I would like to emphasize that this is nonessential solution, so I wish to have such command I first mentioned.

from termuxarch.

github-actions avatar github-actions commented on July 20, 2024

Stale issue message

from termuxarch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.