You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a way to store some customized commands that can be sent to the computers.
I have two ideas for doing this:
Use typesafehub/config (already available dependency) to have a conf file with commands. It is pretty clean but usually it is not intended for things that change during runtime, as it only reads and cache the config at startup.
Use a SQL table for storing the commands.
Use another file for storing them with another format.
Some considerations:
Some commands could be different depending on which OS or distro is running on the computer. It could be a good idea to store different commands for a "command name" depending on the OS. The OS is already known.
The commands should have information:
Executed with or without super user rights (sudo).
Don't wait for result flag: It is not very usual, but it is used when the command should not wait for a result (For example shutdown -h now) as maybe it will never come.
Executed by all the logged in users, by a specific user or by the provided ssh user. It is already know what are the logged in users.
The text was updated successfully, but these errors were encountered:
Create a way to store some customized commands that can be sent to the computers.
I have two ideas for doing this:
typesafehub/config
(already available dependency) to have aconf
file with commands. It is pretty clean but usually it is not intended for things that change during runtime, as it only reads and cache the config at startup.Some considerations:
shutdown -h now
) as maybe it will never come.The text was updated successfully, but these errors were encountered: