From: Andre Noll Date: Thu, 2 Jun 2016 12:58:29 +0000 (+0200) Subject: manual: Add example for interactive mode. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=493e7cff4e7d6518ea323a49fba90476e80649a8;p=adu.git manual: Add example for interactive mode. 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. --- diff --git a/adu.1.inc b/adu.1.inc index 1bf06c2..ddb131f 100644 --- 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)