Bash is a command processor, typically run at the command-line, allowing the user to type commands which cause actions. Bash can also read commands from a file, called a script.

learn more… | top users | synonyms

4
votes
4answers
741 views

bash - How can I check if a computer exists on my network WITHOUT IP (i.e. by device name only)?

I would like my phone to execute certain shell scripts via Tasker if my phone is on the same wifi network as my laptop. My initial idea is to edit the /etc/hosts file, but this wouldn't work since ...
8
votes
2answers
4k views

Can I change some Android settings from the command line?

I would like to activate "USB tethering" from within a bash script, so is there any possibility to run a command line with adb shell to change some Android settings ? Edit1: The following command ...
1
vote
1answer
109 views

I can reverse tether now by using alias but it stops on adb shell command

I made some aliases to quickly reverse tether. alias t='r && sh && n' alias n='netcfg rndis0 dhcp' alias sh='ad shell' alias r='ad kill-server && ad start-server' alias ...
6
votes
2answers
2k views

How to set bash as default shell?

When I adb into a device with Cyanogenmod, I'm presented with a nice bash shell, color prompt, and bashrc. I don't see a symlink from /system/xbin/bash to /system/bin/sh. How do they set the default ...
5
votes
2answers
7k views

adb “Permission denied” to run a “./configure” file

I need to run a configure file into my android phone so I think the best way to do this is to use the adb shell command. I'm running an Android emulator onto a Windows-7 platform, and there I'm ...