Chiara Biancheri wrote: > Alexander Barkov wrote: > > [..] > >>>To avoid any problem with special caracters I made an external program >>>that transform my url. >>> >>>If I put in the indexer.conf only this >>> >>>Server file:/data/ >>> >>>the indexer is working fine, but if I use >>> >>>Server file:/data/ >>>AliasProg "/usr/local/bin/pathconvert $1" >>> >>>and the pathconvert take the file:/data/* and give the appropriate url, >>>to be used when a search is performed. the result in the database is a >>>document with error 503. >>> >>>The program return the alias as stdout. >>>Where the url is trasformed in your code? >>> >>> > [...] > >>Please run indexer with -v6. It will print various debug >>information, including AliasProg related. >> > > With my external program or with the replace from mysql I have the same > result. > On the linux box the debug is the following: > > > indexer[2490]: [1] URL: file:/data/hfdb_docs/20/50/80/ > indexer[2490]: [1] Server 'file:/data/hfdb_docs/20/50/80/' > indexer[2490]: [1] Allow by default > indexer[2490]: [1] Starting AliasProg: 'echo > file:/data/hfdb_docs/20/50/80/ | /usr/bin/replace http://localhost/ > file:/data/' > indexer[2490]: [1] AliasProg result: 'fil' > indexer[2490]: [1] Alias: 'fil' > indexer[2490]: [1] Protocol not supported > indexer[2490]: [1] Done (1 seconds) > > Any idea about? > > thanks > chiara >
Try to move the pipe into separate alias.sh file: #!/bin/sh echo $1 | /usr/bin/replace http://localhost/ file:/data/ Then use alias.sh as an AliasProg. By the way, this alias should work without external program. Just use: Alias http://localhost/ file:/data/ Or directly in Server command: Server http://localhost/ file:/data/ ___________________________________________ If you want to unsubscribe send "unsubscribe general" to [EMAIL PROTECTED]