From 493e7cff4e7d6518ea323a49fba90476e80649a8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 2 Jun 2016 14:58:29 +0200 Subject: [PATCH] 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. --- adu.1.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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) -- 2.39.5