]> git.tuebingen.mpg.de Git - adu.git/commitdiff
manual: Add example for interactive mode.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 2 Jun 2016 12:58:29 +0000 (14:58 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 24 Jun 2016 10:55:33 +0000 (12:55 +0200)
Interactive mode is treated only very briefly in the documentation
and the syntax of the set command is not explained at all.

This commit adds an adu script that can be fed to adu -I to produce
two different output files for the two users under consideration.

adu.1.inc

index 1bf06c214873ba132cc5a01d4aba046aeb399c16..ddb131ffc96d0aeeb2e17c3c08f01d3046e5a722 100644 (file)
--- a/adu.1.inc
+++ b/adu.1.inc
@@ -34,6 +34,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)