Schroot: pass a command to be executed as if it’s in a shell?

I recommend: schroot -c name -u root sh -c "export A=3 && export B=4" This runs the shell with the '-c' option telling it (the shell) to read the following argument as the command (script) to be executed. The same technique works with other analogous commands: 'su', 'nohup', ...

You could try schroot -c name -u root "/bin/bash -c 'export A=3; export B=4'" but this is the first time i've heard of schroot. And the exports look like they're useless...even running the double-quoted stuff directly from the command line, it seems the child shell doesn't want to affect the parent's environment.

I think the quoting would work out better for more complex commands if you did schroot -c name -u root /bin/bash -c 'export A=3; export B=4' instead. – Omnifarious Jun 19 '10 at 6:04 Possibly. But like I said, i've never seen schroot before.

I wasn't sure whether the command had to be one string or what. – cHao Jun 19 '10 at 6:07.

Schroot -c name -u root -- export A=3 && export B=4 Ensuring that /etc/schroot/schroot. Conf has run-exec-scripts=true run-setup-scripts=true.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions