<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <title>acua forEach</title> </head> <body background=back.gif bgcolor=White link=Blue vlink=Black alink=Black> <h1>acua forEach {-p n} {-r n} [-u] <command></h1> <b>acua forEach</b> allows you to execute a command for each user. If <b>{}</b> is found in the command, the user's login name will be substituted. In <b>acua.config</b>, you may exclude specific users with the <b><i>ForEachExclude</i></b> directive.<br> <ul> <b>-p n</b> - <b><i>PROHIBIT</i></b> flag - if the user has an <b>ACUA</b> record, they will be excluded if they <b>do</b> have user-defined flag <b>n</b> set.<br> <br> <b>-r n</b> - <b><i>REQUIRE</i></b> flag - if the user has an <b>ACUA</b> record, they will be excluded if they <b>do not</b> have user-defined flag <b>n</b> set.<br> <br> <b>-u</b> - only execute the command for users who have an <b>ACUA</b> record.<br> </ul> For example, to initialize your <b>ACUA</b> user file based on your passwd file, you might do:<br> <ul> <b>acua forEach</b> <a href="acua_addRec.html">acua addRec</a> "{}" 0 60<br> </ul> <b>NOTE:</b> The <b>{</b> and <b>}</b> are quoted in order to prevent the shell from interpreting them specially.<br> <br> <b>NOTE:</b> User-defined flags are in the range [0,15]. See <a href="acua_modRec.html">acua modRec</a> for information on how to modify these flags.<br> <br> <br> <hr size=5> <address><a href="mailto:acua@acua.ebbs.com.au">Robert Davidson</a></address> </body> </html>