Capture and Display Command Output
Posted: 20 Mar 2019 20:24
Good afternoon all,
Is it possible in XY to select file, run a script, capture the output and display it in a text box ?
For example, I have this : in my hamburger menu and it works great. I am using another tool (OpenSSL) on the command line to generate SRI hashes and wasn't sure if I could somehow have the results/output of this command displayed like the one listed above.
Command Line :
Sample Results :
I just started reading about/applying SRI hashes to my local-only website resources (JS and CSS files). To generate the hashes, I've only seen online ones or the OpenSSL command line. Currently I am using the trick of putting in a bad hash in the script, let it fail so that Chrome displays the correct one in console.log and copy/paste it from there.
Was hoping there would be a way in XY to select a file and display the results for easier copy/pasting.
Is it possible in XY to select file, run a script, capture the output and display it in a text box ?
For example, I have this :
Code: Select all
::SHA256;text hash("sha256",,1);Command Line :
Code: Select all
openssl.exe dgst -sha256 -binary (selected file in XY) | openssl base64 -ACode: Select all
openssl.exe dgst -sha256 -binary C:\Data\Repository\Projects\Web\jquery\jquery.js | openssl base64 -ACode: Select all
2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=Was hoping there would be a way in XY to select a file and display the results for easier copy/pasting.