RE: Running script within chroot jail (OT)

2005-12-27 Thread Michael Bellears
> > On Wed, Dec 28, 2005 at 12:09:20PM +1000, Michael Bellears wrote: > > > Hoping someone can point me in the right direction as to > how I would > > translate the above into a shell script, as my mediocre > attempt fails: > > You were so close! You need to run "chroot /path /command" >

Running script within chroot jail (OT)

2005-12-27 Thread Michael Bellears
Hi, I've got a shell script that I need to run(Via cron) from within a chroot jail (/var/chroot/apache) >From command line, I can do the following: # chroot /var/chroot/apache/ /# cd /usr/local/awstats/tools/ /usr/local/awstats/tools# ./awstats_updateall.pl now Hoping someone can point me in t

Re: Running script within chroot jail (OT)

2005-12-27 Thread Steve Kemp
On Wed, Dec 28, 2005 at 12:09:20PM +1000, Michael Bellears wrote: > Hoping someone can point me in the right direction as to how I would > translate the above into a shell script, as my mediocre attempt fails: You were so close! You need to run "chroot /path /command" (As you can see if you r