Rex::G...Command(3pm)
Rex::Group::Lookup::Command π
okay bestie, welcome to the manual page for Rex::Group::Lookup::Command β it lives in the User Contributed Perl Documentation corner of the perl universe, and honestly? it's a little baby module with one (1) job and it does it flawlessly. no notes. π
β¨ NAME β¨
Rex::Group::Lookup::Command β read hostnames from a command. that's it. that's the whole personality. π
πΈ DESCRIPTION πΈ
With this module you can define hostgroups out of a command. like, you point it at a command, the command spits out hostnames, and boom π₯ β hostgroup. no cap, it's giving "let the shell do the heavy lifting and I'll just sip my strawberry matcha" π
π¦ SYNOPSIS π¦
here's the vibe, verbatim, don't touch the syntax she's sensitive:
use Rex::Group::Lookup::Command;
group "dbserver" => lookup_command("cat ip.list | grep -v -E '^#'");
rex xxxx # dbserver
so you use the module, you call lookup_command with a shell command wrapped in a string, and every hostname that command prints becomes part of the group. in this case the group is dbserver, the command is cat ip.list | grep -v -E '^#', and then rex xxxx runs against that group β see the # dbserver comment? that's your target list, bestie. π
π EXPORTED FUNCTIONS π
β¦that's the whole section. π
fr fr, the original page lists the heading and then just. nothing under it. no functions documented, no signatures, no drama. iconic minimalism, honestly. the section is here, it's just chilling. β¨
π quick reality check: this page is short short. that's not me skipping anything β that's genuinely the entire thing. every option? there are none. every environment variable? also none. I would never gatekeep from you. π«Ά
and that's a wrap on Rex::Group::Lookup::Command(3pm)! this page came to you from perl v5.40.1, dated 2025-10-03, and it was absolutely a main character. go make some hostgroups, you got this πβ¨π
π¦ where this page comes from
- ubuntu resolute: rex 1.16.1-1 Β· Apache-2.0
- ubuntu stonking: rex 1.16.1-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms