help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Iteration Help


From: Brian E. Seppanen
Subject: Iteration Help
Date: Wed, 4 Jan 2006 17:11:48 -0500 (EST)

I want to define the following

users = ( "user1 user2 user3 user4" )

I then want to call it.

shellcommands:
        any::
                "/usr/local/bin/add_user.pl $users"


What I want the script to do is pass a single username. In the script I would use getent to determine if the user account exists and if not then add the account.

Will iteration work so that it does only pass a single user each time? Wanted to make sure.

Thanks,

Brian Seppanen
608.826.1464




reply via email to

[Prev in Thread] Current Thread [Next in Thread]