Hello all!
We're implementing a new log monitoring wich execute an action when the logical is true.
The action have to create a .txt file to be parsed on another app, the .txt file have to be created like:
echo EVENT > $FILENAME
echo { >> $FILENAME
echo DOMAIN={$DOMAIN}, >> $FILENAME
echo APPLICATION=\"AIX\", >> $FILENAME
echo CREATED={$DATE}, >> $FILENAME
echo NUMERIC={$NUM} >> $FILENAME
echo "};" >> $FILENAME
The $Filename has changed to the real path of the file and is created perfectly but the content of the file only writes the first line (echo LEVEL) ,on the second line a { and the third ones the }.
I think that the action assumes the { like a beging of a macro and the last one like the finish of it.
How can we escape this character on the Action box?
Edit: the real problem is the comma "," at the end of each line... same as before How can we escape this caracter?
Thanks so much.
Regards.
We're implementing a new log monitoring wich execute an action when the logical is true.
The action have to create a .txt file to be parsed on another app, the .txt file have to be created like:
echo EVENT > $FILENAME
echo { >> $FILENAME
echo DOMAIN={$DOMAIN}, >> $FILENAME
echo APPLICATION=\"AIX\", >> $FILENAME
echo CREATED={$DATE}, >> $FILENAME
echo NUMERIC={$NUM} >> $FILENAME
echo "};" >> $FILENAME
The $Filename has changed to the real path of the file and is created perfectly but the content of the file only writes the first line (echo LEVEL) ,on the second line a { and the third ones the }.
I think that the action assumes the { like a beging of a macro and the last one like the finish of it.
How can we escape this character on the Action box?
Edit: the real problem is the comma "," at the end of each line... same as before How can we escape this caracter?
Thanks so much.
Regards.
