3 usage="$(basename $0) [-h] [-v version] [-e event] [-P path] [-S source path] -- FCE sample script
10 -S source path for events like rename/move
16 while getopts ':hs:v:e:P:S:u:p:i:' option; do
35 ?) printf "illegal option: '%s'\n" "$OPTARG" >&2
43 printf "FCE Event: $event" >> /tmp/fce.log
44 if [ -n "$version" ] ; then
45 printf ", protocol: $version" >> /tmp/fce.log
47 if [ -n "$evid" ] ; then
48 printf ", ID: $evid" >> /tmp/fce.log
50 if [ -n "$pid" ] ; then
51 printf ", pid: $pid" >> /tmp/fce.log
53 if [ -n "$user" ] ; then
54 echo -n ", user: $user" >> /tmp/fce.log
56 if [ -n "$srcpath" ] ; then
57 echo -n ", source: $srcpath" >> /tmp/fce.log
59 if [ -n "$path" ] ; then
60 echo -n ", path: $path" >> /tmp/fce.log
62 printf "\n" >> /tmp/fce.log