Iwatch: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 20: | Zeile 20: | ||
</watchlist> | </watchlist> | ||
</config> | </config> | ||
+ | </pre> | ||
+ | =script= | ||
+ | <pre> | ||
+ | #!/bin/bash | ||
+ | ARG1=$1 | ||
+ | ARG2=$2 | ||
+ | echo $ARG1 $ARG2 >> /tmp/iwatch | ||
</pre> | </pre> |
Version vom 26. Juni 2014, 14:04 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" exec="/usr/local/sbin/dir-watch %e %f">/daten</path> </watchlist> </config>
script
#!/bin/bash ARG1=$1 ARG2=$2 echo $ARG1 $ARG2 >> /tmp/iwatch