Scanning text files for ascii control characters, Scanning the configuration files – Visara Master Console Center Administration Guide User Manual
Page 211
![background image](https://www.manualsdir.com/files/808697/content/doc211.png)
Chapter 15 Troubleshooting
Administration Guide
211
Scanning Text Files for ASCII Control Characters
The MCC screen editor does not display ASCII control characters in text files
such as configuration (.cfg) files and scripts if the user inadvertently types them.
As these characters may cause errors, the configuration files and scripts should
be scanned after each editing sessions to identify them.
To use scanctrl, call it with a list of file names to scan using a command in the
following format:
/usr/ics/bin/scanctrl
For example, the following scans the system.cfg and security.cfg files:
cd /usr/ics
/usr/ics/bin/scanctrl config/system.cfg config/security.cfg
Note: The scancrtl program requires perl to be installed in /usr/local/bin.
For information on installing perl, contact Visara Technical
Support.
The wildcard character (*) may be used.
Non-text files in referenced directories are ignored.
The program shows the files that contain ASCII control characters and prints
the affected line number(s), but takes no action to remove those characters.
Scanning the Configuration Files
To scan all configuration files after an editing session, enter:
/usr/ics/bin/scanctrl /usr/ics/config/*
An example output follows:
hermod:/usr/home/danders/pl> /usr/ics/bin/scanctrl /usr/ics/config/*
/usr/ics/config/charset.cfg, OK
/usr/ics/config/event.cfg, OK
/usr/ics/config/fonts.cfg, OK
/usr/ics/config/gclrund.txt, OK
/usr/ics/config/groups.cfg, OK
/usr/ics/config/icsmaster.txt, OK
/usr/ics/config/icsmaster.txt.bak, OK
/usr/ics/config/keymap.cfg, OK
/usr/ics/config/license.cfg, OK
/usr/ics/config/objmgr.cfg, 187 ******
/usr/ics/config/osgroup.cfg, OK
/usr/ics/config/rgb.txt, OK
/usr/ics/config/security.cfg, OK