Bash scripting for terminal emulator. - Android Software/Hacking General [Developers Only]

Hi i'm trying to write a aircrack bash script for terminal emulator but can't find the command for calling a new terminal window. Is there a command for calling a new window?

Related

GUI Shortcut to Execute Linux Shell Script

To run a shell script quickly, I open Terminal Emulator and paste command from Clipper+ archives. Is there a faster way?
I want to tap a shortcut on homescreen to execute the shell script. Is it possible without diving into app development? Any hack etc?
Script manager in combination with the sm widget. I used to use it to run reboot scripts while on ICS.
Sent from my LG-P999 using xda premium
What if I want to have a shortcut to a script to be executed with Terminal Emulator? Not in/with any other program...
This seems to be not possible.

terminal emulator initialization

Almost all terminal emulators let you to define an initial command, which will be run when you launch terminal emulator. But if you start a new cession in the emulator, say running cmd "su", the new session is not initialized as described in your initial command.
If your device is rooted and running latest Android OS, there is a way to make terminal emulator apps run your initial command for every session. Search directory /system/etc for file mkshrc, which is the initial command scrip for all terminal emulator and for all shell session in Android. You can put your initial commands there. Specifically, you can make it happen by doing the following:
. copy mkshrc from /system/etc to , say, /sdcard
. edit /sdcard/mkshrc and add in your own initial cmd
. remount /system/etc RW
. replace /system/etc/mkshrc with new mkshrc
. remount /system/etc RO
In addition, you'd better to make a backup copy of the original mkshrc just in case.
Not sure whether mkshrc is in all android version. My device is TF101 with EOS4 JB4.2.2. If you cannot find /system/etc/mkshrc, there might be other shell rc file.

Need Android Terminal Command Reference

Does anyone have a list or link to the android terminal command set? I found a few for Unix/Linux but some commands don't work and others I know work on Android aren't even listed. Who has a complete list of terminal commands for say the market app "Android Terminal Emmulator"
Sent from my ASUS Transformer Pad TF700T using xda app-developers app
elfaure said:
Does anyone have a list or link to the android terminal command set? I found a few for Unix/Linux but some commands don't work and others I know work on Android aren't even listed. Who has a complete list of terminal commands for say the market app "Android Terminal Emmulator"
Click to expand...
Click to collapse
The terminal emulator only emulates a terminal. The commands available depend on the programs installed on your device.
You can use the busybox documentation as a guide for the common Unix commands implemented in busybox:
http://www.busybox.net/downloads/BusyBox.html
For some commands which have a more limited implementation in Android (look into /bin), e.g. chmod, run "busybox chmod" instead of "chmod" to get the more capable version.
But you can also install more programs, or advanced versions of the commands busybox provides.
_that
Thks. With as many emails as you entertain daily, I really appreciate you taking the time to always give a detailed and educating explanation with great links.
I like Jack's explanation on wiki for his market app "Android Terminal Emulator". He says you can:
echo $PATH
then
ls -al /PATH for each PATH in $PATH to list all the commands available on your device

[Q] ubuntu on android

Hello, I can not get ubuntu to boot when I type the following into my terminal emulator. "sh mnt/sdcard/ubuntu/ubuntu.sh" I get the following errors when I do that.

Terminal

Can anyone suggest/recomended terminal.
Termux is somehow not working properly.
Terminal emulator for android(play store)

Categories

Resources