Where is the output to stdout/stderr from hook operations (bash) captured?

  • 0
  • 1
  • Question
  • Updated 10 months ago
  • Answered
Hi all,
I'm new to cutomizing the provisioning of VDBs with hooks. Using bash type hooks, where can I find test that was beeing sent to stdout or stderr?
Thanks in advance!
Photo of Hauke Ahlgrimm

Hauke Ahlgrimm

  • 174 Points 100 badge 2x thumb

Posted 10 months ago

  • 0
  • 1
Photo of Matt Griffith

Matt Griffith

  • 930 Points 500 badge 2x thumb
Official Response
Hi Hauke,

Best practice is to write your bash script outside of Delphix and locate it on the target server. You then call the script from within the hook.

The benefit with this method is you have complete control over input and output and ensure logging and debugging is exactly how you want it.

Delphix provide a bunch of variables you can use too.

I've written a SQL Server blog post that mentions the variables (although it is a little out of date now but useful nonetheless) but the same applies to Linux based systems.