Generating Bash Scripts

To export the plotted charts as an image to generate reports on a UNIX-based operating system, use the Curl script for the displayed chart.

One of the prerequisites to running the Curl script is that you must have the Curl SSH client installed on your machine. If a Curl SSH client is not available, refer to https://curl.se/download.html to download the required Curl package. Alternatively, you may run the generated script using Git Bash on your Windows-based operating system.

To download the plotted configuration in SVG file format:

  1. Click Bash on the Automation pane.

  1. A window appears where the Bash/Curl script for the current chart is displayed.

  1. Highlight and copy the Bash/Curl script to the clipboard.

  2. Paste the contents of the clipboard in a text editor.

  3. Modify the filename, if required, for easy identification.

Note: Keysight recommends modifying only a few sections mentioned below. The rest of the code contains information about the plotted chart and should not be edited.

Text

Description automatically generated

  1. Open the Git Bash/Curl SSH Client.

  2. Paste the script in the client.

Text

Description automatically generated

  • Press Enter on the keyboard.

  • The script has successfully run when the logs of the image download appear on the Git Bash or CURL SSH client without any errors.

  • By default, the image is extracted to the “C:/Users/<user-account>” folder on your machine, which is the same as the same as that for Git Bash client.

  • The image is exported in the SVG format.