On Tue, June 23, 2015 6:15 am, Craig Skinner wrote: > On 2015-06-22 Mon 12:39 PM |, Noah wrote: >> On Mon, Jun 22, 2015 at 11:58 AM, Craig Skinner >> <skin...@britvault.co.uk> >> wrote: >> > >> > *) either/both .txt/.html >> > *) .txt output something like: ls [-l[h]] | fgrep -v index.txt >> > >> >> Does auto index do the trick? It doesn't make an index.html/txt file, >> but >> it does provide file names and links as you'd expect. >> > > Ummm.... I was thinking of something that could generate $RELEASE > index.txt files, including siteXX.tgz & siteXX-<hostname>.tgz files. > > e.g: > $ ftp -o /tmp/internal-index.txt > http://mirror.internal/pub/OpenBSD/5.6/i386/index.txt
Are you trying to generate the index on this internal mirror or on the system that's downloading the install sets? > > At the moment, I'm using a cron driven script to create index.txt files: > > $ fgrep index ~webmaster/crontab.bak > @weekly release-indexer > > $ cat ~webmaster/bin/release-indexer > Maybe there is something specific you need to work around by I feel like you're making this a lot more complicated than it needs to be. When you populate the mirror why not just generate the index then? All it takes is: ls -nT > index.txt Tim.