Rex::Gr...:Command(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

🌸 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