-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
Execute commands on session exit #105
Comments
Hi @grg121! There are three ways:
|
Thank you for your answer @anki-code I'll check the third solution as it seems to me the most correct one and I would be glad to test it and open a PR soon. Best regards, |
Hello @anki-code, I've checked your answer I've concluded that:
So, I've made this change on my xxh fork, to add some python code at the end of the xxh session (I'm sourcing the script in order to keep all the previously defined variables and functions and do not lost password or other credentials) https://github.com/grg121/xxh/pull/1/files I would like to know what would you think about this change, and If you would consider adding this to the project. I understand that maybe what I need is something too specific and it doesn't make any sense to add this code to the project just for me but I've been thinking in possibles usages for it and maybe it would be an interesting option for future users). Best regards and thanks for read! |
Got it! I suggest to leave this approach in your fork until you finish your work around the complex syslog solution you're working on. After time probably you'll want to change the logic or will have more info. It's great that you have resolved your current needs using a fork! |
Hello there!
I would like to know if there is a way to configure certain script to be run when an xxh session end, for example, to delete the hermetic environment or to retrieve some files generated during the seesion (log files or something like this) using sftp or whatever.
If it is not possible, would you consider including such feature? I would be glad to work on this and open a Pull Request : )
(I think it may be interesting to support a different kind of plugin that allow running code at the end of the session instead of at the beginning)
Best regards.
For community:
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: