+ 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
6 Réponses
+ 1
how do you run it?
+ 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)
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>
0
lol have fun then buddy
- 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>