Post, Mark K wrote:
Yes, it is possible:
chroot /mnt /boot/runzipl

This says to chroot to /mnt, and execute a script named runzipl that is
located at /boot (which really needs to be at /mnt/boot/runzipl).  That
script, when it exits, will return you to your non-chrooted environment.

Any scripting language will work, as long as your chrooted environment
has the interpreter for that language contained within itself.  In the
case above, I'm chrooting to a brand new Slack/390 installation, so
bash, etc. is already where it needs to be.

Some variation on this will work too:
cat lotsacommands | chroot /mnt /bin/sh

You can run any command stored in the chrooted system using the chroot
command (subject to PATH being set properly):
chroot /mnt service httpd start



--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

Please do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to