Bash Scripting and Chroot/Exec
Hi, I was just writing a shell script that needs to chroot or start another bash shell, but when I tried executing it, the part of the script after the chroot never ran. I was wondering if there was a way to do this without having to make separate scripts. Thanks :-)
|
Quote:
I would guess that after the chroot you would have to make the command paths relative to the new root. If the directories where the commands are located are not accessible from the new root then the commands cannot be executed. --------------------- Steve Stites |
I tried that, but apparently the new bash doesn't recognize that it should continue executing the script. Any ideas?
|
Quote:
------------------- Steve Stites |
It's not an error, its just that the script I'm trying to run stops after the chroot (sort of like running an exec command); I'm trying to make the script keep running in the new chroot.
|
|
All times are GMT -5. The time now is 12:46 AM. |