Running script within chroot jail (OT)
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 the right direction as to how I would
translate the above into a shell script, as my mediocre attempt fails:
# cat awstats_cron.sh
#!/bin/sh
chroot /var/chroot/apache/ -I
/usr/local/awstats/tools/awstats_updateall.pl now
exit
# ./awstats_cron.sh
bash-2.05b#
Regards,
MB
Reply to: