+ 1

nmcli alternatives for termux

I am working on an program in python to connect to a wifi network as my device frequently disconnects. Code: https://www.codespeedy.com/connect-to-a-wifi-network-in-python/ Problem: After running the code in termux it gives a error 'sh: nmcli: not found'. Is there a way to install it or is there an alternative to it

25th Jan 2021, 6:17 AM
Aradhay Mathur
Aradhay Mathur - avatar
6 Respostas
+ 1
how do you run it?
25th Jan 2021, 10:24 AM
Slick
Slick - avatar
+ 1
there's no right access problem, but unknown 'nmcli' command... (and inexistant network-manager package to let us install it: maybe access to such hardware things are not allowed/possible inside android)
25th Jan 2021, 12:00 PM
visph
visph - avatar
0
Slick I have installed python 3 and nano editor using pkg install in termux
25th Jan 2021, 10:29 AM
Aradhay Mathur
Aradhay Mathur - avatar
0
great, but if you just download code to termux, it usually isn't ready to run. To change permissions: chmod 755 <filename> # then... ./<filename>
25th Jan 2021, 10:31 AM
Slick
Slick - avatar
0
lol have fun then buddy
25th Jan 2021, 10:57 AM
Slick
Slick - avatar
- 2
make ur code in nano, the first line should be: #!/data/data/com.termux/files/usr/bin/python3 Then - write your code, - chmod 755 the .py file, - and either: bash <.py file> OR ./<.py file>
25th Jan 2021, 11:51 AM
Slick
Slick - avatar