Log File Path Variable strip non valid characters

Implemented

Log File Path Variable strip non valid characters

0 vote

avatar

Our SSH sessions do have most of the time the log feature enabled. For the log filename we are using variables like these: $NAME$_$DATE_YEAR$$DATE_MONTH$$DATE_DAY$_$TIME_TEXT$.log

forum image

Problem, if a session name contains any special character like the pipe character, this will cause issues. As windows can not handle special characters in filenames.

Would it be possible to strip out all none valid characters from this variable to prevent problems writing this file to the filesystem? Or may you could generate a "safe name" variable?

I think this applies to the Mac OS RDM Version too?

All Comments (1)

avatar

Hello,

I think simply removing the invalid characters when trying to log would be a good solution. It would remove the need for the administrator to know whether to use $NAME$ or $SAFE_NAME$ in certain fields and instead always use the same variable. And name is just one example, it could happen with other variables.

I have opened a ticket to make this improvement for our terminals. We will post back here when we have made the change.

Regards,

Hubert Mireault