#!/bin/bash
#
# This script is primarily for calling from ServiceAgentUtils.runPedbg() to
# execute pedbg, provide a series of canned answers to its interactive prompts,
# and collect up the resulting output file for transmission to IBM service (if
# selected).  This is run as root via execAsRoot so that we can su to hscpe
# (without providing a password); hscpe is the only user that can run pedbg.
# This script calls, in turn, another script (runAroundPedbg) for actual pedbg
# execution cuz the "su -c" command DOES NOT function correctly on this Linux
# variant.

su hscpe -c /opt/ccfw/data/p/sa/runAroundPedbg
