Rex::Gr...:Command(3)
πΈ NAME πΈ
Rex::Group::Lookup::Command β read hostnames from a command. This page is filed under User Contributed Perl Documentation, and it's here to make hostgroups feel cute π
π¦ DESCRIPTION π¦
Okay so, straight up: with this module you can define hostgroups out of a command. That's the whole plot, bestie. You read hostnames from a command and turn them into hostgroups β no cap, it's giving useful and simple β¨
π SYNOPSIS π
Here's the exact code vibe:
use Rex::Group::Lookup::Command;
group "dbserver" => lookup_command("cat ip.list | grep -v -E '^#'");
rex xxxx # dbserver
The last line has # dbserver as a comment in the example, so you know what's up. iykyk π
β¨ EXPORTED FUNCTIONS β¨
This section is literally just a heading on this page β there are no exported functions listed under it. It's giving minimal, and honestly? Respect π
Sign-off, bestie: this page's footer energy is perl v5.42.3, dated 2023-08-05, and it goes by Rex::Gr...:Command(3) π«Άπ
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms