On Wed, Dec 15, 2004 at 08:03:07PM +0200, Marius Andreiana wrote: > On Wed, 2004-12-15 at 12:49 -0500, Jeff Kinz wrote: > > ls -lagsR $CATDIRS > ${CATALOGSDIR}/`date +%m.%d.` > works for single home user :) but not for a company with > 10 users, > many non-tech. They need an easy front-end to search. "> 10 users" Oh, please... If your users can't type in "egrep ${CATALOGSDIR}/FILE_I_WANT *" then install this script in the cgi-bin dir of your local web server AKA -Instant Web-based Application. ######################### CUT HERE ##################### #!/bin/bash # set the following variables CATALOGSDIR="" ERSTITLE="Backup catalog Search Form" HEAD1='<H1>' echo 'Content-type: text/html <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META name="GENERATOR" content="Mozilla/4.5 [en] (Win95; I) [Netscape]"> <TITLE>Back Up Search Tool</TITLE> ' echo '</HEAD> <BODY BGCOLOR="#F4F3F0"><hr>' target="" it="" read it target=`echo $it | sed 's/^.*=//'` echo $HEAD1 $ERSTITLE echo ' <br> <FORM NAME="SUBTEST" METHOD="POST" ACTION="/cgi-bin/v" ENCTYPE="x-www-form-urlencoded"> <br>Please enter the file name to look for<br> <INPUT NAME=FORM TYPE=TEXT MAXLENGTH=200 size=50> </form> press enter to complete the form <br> Results of last search:<br> <font face=Courier size=1> <text> <br> <pre>' slocate ${CATALOGSDIR} $target echo ' </pre> </text>' ############ CUT HERE ######################################## -- Linux/Open Source: Your infrastructure belongs to you, free, forever. Idealism: "Realism applied over a longer time period" http://www.scaled.com/projects/tierone/ <a href=http://kinz.org>Kinz</a> http://www.fedoratracker.org http://www.fedorafaq.org http://www.fedoranews.org Jeff Kinz, Emergent Research, Hudson, MA. ~ ~ ~ ~