You are not logged in.

#1 2013-02-28 17:35:46

kdar
Member
From: Sweet home Alabama!
Registered: 2009-06-27
Posts: 356

Execute commands inside new shell with a single line?

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)

Offline

#2 2013-03-01 03:50:59

demize
Package Maintainer (PM)
From: Stockholm, Sweden
Registered: 2012-10-23
Posts: 20
Website

Re: Execute commands inside new shell with a single line?

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)

Offline

Board footer

Powered by FluxBB