Nov-20-2018, 11:39 AM
i have the following list ->
chsec -f filename -s stanza -a element1 -a element2 -a and_so_on
how to do this?
some kind of argument counting would also be nice, because the argument count is
flexible.
['SYSTEM=LDAP', 'registry=LDAP']in need the elements as commandline argument for a system command
chsec -f filename -s stanza -a element1 -a element2 -a and_so_on
how to do this?
some kind of argument counting would also be nice, because the argument count is
flexible.
rc, package_result, err = module.run_command("%s -f %s -s %s -a %s" % (chsec_command, filename, stanza, options ))