Tagar/rman

Incorrect rman renicing output in Linux

Tagar opened this issue · 3 comments

INFO: Reniced Oracle processes participating in RMAN backup to lower priority.
List of RMAN related processes with PIDs 4793,4794\c,:
released channel: ch1

Two issues

  1. notice \c output and extra comma in 2nd the sample output;
  2. doesn't print list of processes.

Issue: Linux's echo expects -e option to recognize \c.
Other platforms don't have -e switch.

Fixed with case for Linux:
case uname in
Linux) PIDS2=echo -n "$PIDS" | tr "\n" "," ;;
*) PIDS2=echo "$PIDS\c" | tr "\n" "," ;;
esac