source:
nutchez-0.1/tomcat/webapps/ROOT/WEB-INF/classes/plugins/parse-ext/command
@
108
Last change on this file since 108 was 66, checked in by waue, 15 years ago | |
---|---|
File size: 348 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | # |
3 | # Sample bash script as external command invoked by parse-ext plugin |
4 | # |
5 | # 20040701, John Xing |
6 | |
7 | set -e |
8 | |
9 | if [ $# -ne 1 ]; then |
10 | echo Usage:$0 mimeType >&2 |
11 | exit 1 |
12 | fi |
13 | |
14 | case $1 in |
15 | "application/vnd.nutch.example.cat") |
16 | cat |
17 | ;; |
18 | "application/vnd.nutch.example.md5sum") |
19 | md5sum |
20 | ;; |
21 | *) |
22 | echo "Can't parse mimeType $1" >&2 |
23 | exit 1 |
24 | esac |
Note: See TracBrowser
for help on using the repository browser.