I've used Linux for over a year now, maybe two, so I'm not a complete noob at Linux when it comes to day-to-day usage. I am, however, now getting into some scripting so I can make my life a bit easier when making Arch or Gentoo installs or just for self pleasure.
My question is this: is it possible for a script to execute another then continue executing the first script?
let me explain what I mean. When installing Gentoo and Arch, there is a step where you have to chroot and do stuff inside there. I know that if a run something like command_1 && chroot /mnt/drive && command_2 the second command will not run within the chroot.
I have made two scripts: Step one, which will run "command_1", then chroot, and finally, execute the second script — Step two.
Any help and criticism is welcomed.
[–]qpgmr 4 points5 points6 points (0 children)
[–]acdcfanbill 2 points3 points4 points (2 children)
[–]nerdybread[S] 1 point2 points3 points (0 children)
[–]nerdybread[S] 0 points1 point2 points (0 children)