Who rated this post

cancel
Showing results for 
Search instead for 
Did you mean: 

Non-ASCII check

Danny
MVP Platinum
MVP Platinum

🛒 More SmartTasks
👍 Tested to be working with R81.20+

SmartTask to verify if a change includes non-ASCII characters.

Script code

Copy the code below into a new script 'Task_CheckNonASCII' of your SmartConsole script repository.
test `cat $1|LC_ALL=C grep -q '[^ -~]';echo $?` -eq 0 && echo '{"result":"failure","message":"Change includes forbidden non-ASCII characters."}' || echo '{"result":"success"}'

SmartTask

Create a new SmartTask in SmartConsole
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




(1)
Who rated this post