SetScript errors received when executing Spectrum AlarmNotifier

book

Article ID: 51578

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

SetScript errors received when executing Spectrum AlarmNotifier

Errors similar to the following are seen in the $SPECROOT/Notifier/NOTIFIER.OUT file:

====================================================

/d/win32app/SPECTRUM/Notifier/SetScript: line 18: $'\r': command not found

/d/win32app/SPECTRUM/Notifier/SetScript: line 53: $'\r': command not found

/d/win32app/SPECTRUM/Notifier/SetScript: line 54: $'\r': command not found

/d/win32app/SPECTRUM/Notifier/SetScript: line 55: syntax error near unexpected token '$'in\r''

/d/win32app/SPECTRUM/Notifier/SetScript: line 55: 'case '/bin/uname` in '

=====================================================

Cause

There are line endings.

Environment

Release: Any version installed on Windows
Component: SPCAEM

Resolution

Set the following environment variable to ignore line endings "\r". Another solution would be to fix the script by running the Unix2Dos utility.

  1. Set the environmental variable SHELLOPTS=igncr to resolve the case.

  2. Restart the operating system for the changes to take effect.