Installation guide
4: SRA Design Tips and Restrictions
DC 900-1325I 63
This is especially true with the FreeBSD operating system on the Freeway server. When
transferring text files to the Freeway server, care must be taken to make sure that the text
files are in UNIX format. Script files, make files, and configuration files will not be exe-
cuted properly under BSD if they are in Windows format. For example, if the bootcfg
file used in the update procedure in Section 4.2.3 was created in Windows format, the
Freeway server would fail to boot properly after the update.
To prevent this from happening, use the following precautions when updating text files
on the Freeway server:
• When using FTP to transfer files to the Freeway server, be sure the text files are
transferred in ASCII format. Most FTP programs will recognize the Freeway
server as a UNIX system and automatically remove the carriage return characters
from the text files when ASCII format is specified.
• Use a text editor on your Windows PC that allows you to save text files in either
UNIX or DOS formats. This is especially helpful when using the CDROM method
to update text files.
If you find that a boot or configuration file is not working properly on the Freeway
server, you can use the vi editor to check the text file to see if it is in Windows format.
The vi editor will display the carriage returns in Windows text files with Ctrl-m ( ^M )
characters at the end of each line. You may also use the vi editor to remove the Ctrl-m
characters from the text file using the vi commands in the example below:
cd /tmp/boot
vi dostextfile
^M
This text file was created on^M
a Windows PC and transferred^M
to the Freeway server as is.^M
^M
~
:1,$s/^M//g
[Note: To input the ^M character above, press Ctrl-v , and then
press Enter]
:x
dostextfile: 5 lines, 90 characters.