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