is this possible, or is this a feature request?

tlarkin
Honored Contributor

I admit, I have not had time to actually look into this at the moment but one of my co-workers asked me this today when I was upgrading one of our servers. He wanted to know if he could run a real-time console or log while running Casper Imaging since everything we run now configuration wise is ran by scripts. I thought to myself this would be great for debugging stuff when I am in the developing stage of it. As of now, the Casper Imaging app just shows that the client is running a script. If I could bring up a terminal window, or even the console and view what was going on while it happened, it would help me debug when I am developing my work flow, and it would give my fellow workers piece of mind when they use my new configurations.

Anyone ever done anything like this before? This would also allow me to echo out variables and results all the time to watch what my script was doing in real time, and then go back later and make it less "chatty" when it hits production.

Thanks

Tom

1 REPLY 1

Not applicable

running Casper Imaging since everything we run now configuration wise is
ran by scripts.

I don't know about watching in real time but adding the following to the
top of your script will log each action the script performs to a file. I
use it for debug during testing of scripts.

set -xv; exec 1>/path/to/file.txt 2>&1

- JD