Iwatch: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 17: | Zeile 17: | ||
<title>Operating System</title> | <title>Operating System</title> | ||
<contactpoint email="technik@xinux.de" name="Administrator"/> | <contactpoint email="technik@xinux.de" name="Administrator"/> | ||
− | <path type="single" syslog="on" exec="/usr/local/sbin/dir-watch %e %f">/daten</path> | + | <path type="single" syslog="on" alert=off exec="/usr/local/sbin/dir-watch %e %f">/daten</path> |
</watchlist> | </watchlist> | ||
</config> | </config> | ||
</pre> | </pre> | ||
+ | |||
=script= | =script= | ||
<pre> | <pre> |
Version vom 27. Juni 2014, 10:41 Uhr
installation
apt-get install iwatch
configuration
start at boot
- /etc/default/iwatch
START_DAEMON=true CONFIG_FILE=/etc/iwatch/iwatch.xml
main config
- /etc/iwatch/iwatch.xml
<?xml version="1.0" ?> <!DOCTYPE config SYSTEM "/etc/iwatch/iwatch.dtd" > <config> <guard email="technik@xinux.de" name="IWatch"/> <watchlist> <title>Operating System</title> <contactpoint email="technik@xinux.de" name="Administrator"/> <path type="single" syslog="on" alert=off exec="/usr/local/sbin/dir-watch %e %f">/daten</path> </watchlist> </config>
script
#!/bin/bash ARG1=$1 ARG2=$2 echo $ARG1 $ARG2 >> /tmp/iwatch