fsquillace / junest

The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro.
GNU General Public License v3.0
2.1k stars 110 forks source link

Run a program inside JuNest from a shell script in host system #112

Closed mardukbp closed 9 years ago

mardukbp commented 9 years ago

I have a Debian workstation at the university and I installed JuNest in my $HOME folder in order to be able to install my own programs. I would like to make it easier to run programs inside JuNest from the Debian host. For that purpose, I want to write a shell script that executes the junest command and then runs a specified program. However, I am having difficulties with the fact that junest creates a subshell (what is the proper term?). I do not know how to pass commands to the junest shell.

fsquillace commented 9 years ago

Hi,

You can even pass the command through the CLI. For instance:

junest -f -- pacman -Syu
....

Will update the JuNest system.

mardukbp commented 9 years ago

Fantastic! Thank you!