-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging outputs of Hooks #10
Comments
Seems to be working for me. In
Let me know if this helps. |
Hi @edio , You are right, it works properly. The issue was not the piping, but rather the line break between commands Something like:
Returns:
Whilst:
Works like a charm Is there any way to break lines in the hooks? |
I'd offer to define hook in an executable script and point randrctl to it
|
Hi @edio, That did the drill, now everything is working. Thanks a lot! However, shouldn't randrctl support line breaks natively? Or is it a limitation of ConfigParser? |
@facocalj INI file does not support multi-line values, afaik. randrctl has a dependency to pyyaml since 1.4.0, so it's be possible to introduce yaml config instead of ini (which, I believe, we should eventually do). |
Now that we support multi line hooks, can you close the issue? |
Heya,
Is there any way to log the output of commands in the hooks?
I've tried to pipe them into a file, but then the commands don't appear to be executed at all
The text was updated successfully, but these errors were encountered: