X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=adu.1.inc;h=4cf6fcdaa22d48cc388455fb001fd2255776b5bf;hb=2e24b91148dda8ea52b308a4b5e0ef08c0f11267;hp=1bf06c214873ba132cc5a01d4aba046aeb399c16;hpb=e013b5cf3657d02b3eea27cf8e77d84ac3210a5d;p=adu.git diff --git a/adu.1.inc b/adu.1.inc index 1bf06c2..4cf6fcd 100644 --- a/adu.1.inc +++ b/adu.1.inc @@ -7,7 +7,6 @@ The following example creates a database containing the disk usage patterns of the /var directory: .IP $ adu --create --database-dir /root/adu-var --base-dir /var - .PP Here's a simple query that uses the newly created database to print the user-summary: @@ -34,6 +33,24 @@ The same, using short options: Again the same, but omitting /var/cache: .IP $ adu -Sd /root/adu-var -s '-m user_list -u root -u mysql -l 5 -p !^cache/' +.PP +A simple script for interactive mode: + +.EX + set -m user_list + set -u root + set -o file-list.root + run + reset + set -m user_list + set -u mysql + set -o file-list.mysql + run +.EE +.PP +Run adu in interactive mode with the above script (adu-script.txt): +.IP + $ adu -Id /root/adu-var < adu-script.txt [SEE ALSO] .BR du (1)