DOKK / manpages / debian 13 / rex / Rex::Group::Lookup::Command.3pm.en
Rex::Group::Lookup::Command(3pm) User Contributed Perl Documentation Rex::Group::Lookup::Command(3pm)

Rex::Group::Lookup::Command - read hostnames from a command.

With this module you can define hostgroups out of a command.

 use Rex::Group::Lookup::Command;
 group "dbserver"  => lookup_command("cat ip.list | grep -v -E '^#'");
 rex xxxx                            # dbserver

2025-02-06 perl v5.40.0