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.
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.
]]>