XYMONCMD(1)

✨ XYMONCMD ✨

okay bestie, so this page is from the XYMONCMD(1) manual, in the General Commands Manual section β€” and it's literally just about running one Xymon command with the whole environment already set up. iconic behaviour tbh πŸ’…


🌸 NAME 🌸

xymoncmd β€” run a Xymon command with environment set 🫢


πŸŽ€ SYNOPSIS πŸŽ€

xymoncmd [--env=ENVFILE COMMAND|--version|--debug]

πŸ’– DESCRIPTION πŸ’–

so xymoncmd(1) is this lil utility that sets up your Xymon environment variables β€” the ones defined in a xymonlaunch(8) compatible environment definition file β€” and then runs a command with that environment all in place. main character energy fr fr ✨

it's mostly used for testing extension scripts, or literally any other situation where you need to run a single command with the environment in place. no cap.

the --env=ENVFILE option points xymoncmd at the file where the environment definitions get loaded from. πŸ“

COMMAND is the command to execute after setting up the environment. periodt.

and like, if you wanna run multiple commands? the easiest move is usually just using sh as the COMMAND β€” that gives you a sub-shell with the environment defined globally. obsessed with the efficiency honestly πŸ¦‹

the --debug option prints out more detail steps of xymoncmd execution. πŸ‘‘

the --version option prints out the version number of xymoncmd. πŸ’œ


🌈 SEE ALSO 🌈


ngl the whole vibe here is: set the environment, run one thing, dip. simple, clean, slay. πŸ’…

okay and for the cute sign-off β€” this one's from Xymon, Version 4.3.30, dated 4 Sep 2019. that's the whole XYMONCMD(1) page bestie, go run your commands with the environment set and eat πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from