HP/UX changes after site testing

This commit is contained in:
2025-11-11 06:02:54 -05:00
parent c2ef3e05e3
commit bd7d5da70e
6 changed files with 88 additions and 28 deletions

View File

@@ -5,13 +5,26 @@
# v1.1 - James Pattinson - October 2025
#
# usage: list_mv.ksh
_SCRIPT_="$0"
get_script_dir() {
src="$0"
dir=$(cd -P "$(dirname "$src")" >/dev/null 2>&1 && pwd)
echo "$dir"
script="$1"
case "$script" in
/*) abs_path="$script" ;;
*) abs_path="$PWD/$script" ;;
esac
while [ -L "$abs_path" ]; do
link=$(readlink "$abs_path")
case "$link" in
/*) abs_path="$link" ;;
*) abs_path="$(dirname "$abs_path")/$link" ;;
esac
done
script_dir=$(dirname "$abs_path")
cd "$script_dir" 2>/dev/null && pwd
}
MYDIR=$(get_script_dir)
MYDIR=$(get_script_dir "$_SCRIPT_")
. $MYDIR/rubrik.conf
. $MYDIR/oracle_funcs.ksh
@@ -45,3 +58,4 @@ awk '
' /tmp/rbkresponse.$$
cleanup