---
name: "Rex::Group::Lookup::Command"
section: "3pm"
platform: "linux"
package: "rex"
version: "1.16.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Rex::Group::Lookup::Command"
---

# Rex::Group::Lookup::Command(3pm)

read hostnames from a command.

## NAME

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

## DESCRIPTION

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

## SYNOPSIS

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

## EXPORTED FUNCTIONS
