I need some way to run series of commands as a single line, however the problem is that I am changing to another shell at one point and I am not sure how I can make commands execute in that new shell.
Here is what I am trying to do (as I am running it now)
adb shell ubuntu_chroot shell nohup /home/phablet/test/test2.sh
I am able at the moment to call this:
adb shell "ubuntu_chroot shell"
But I am not sure how I can execute line that calls test2.sh after that on a single line.
Last edited by kdar (2013-03-01 05:54:33)
Does ubuntu_chroot have a --help flag or manpage?
It's fairly common for shells to have a -c flag which will make them run the first argument in the new shell.
Edit: Just looked through the Ubuntu Touch repos, ubuntu_chroot is (currently) only able to launch a shell, but it should be easy to modify it to just pass on the additional arguments to sh
uchroot repo here if anyone's interested.
Last edited by demize (2013-03-01 04:10:27)