[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: postinstall files have ? at end



On Thu, Feb 08, 2001 at 02:55:52PM -0600, Schuster, Dan wrote:
> When our postinstall program on RH7 does an echo to create a file like:
> 	echo "mybox" > /etc/HOSTNAME
> 
> The file ends up being /etc/HOSTNAME? (with a ? at the end of it).  Why is
> this doing this and how do you stop it from happening.  Does it have to do
> with how the ks.cfg file is created -or- how it is copied to the floppy
> disk?
> 
> Much Thanks,
> -Dan

Was the "ks.cfg" file created on a DOS/Windows machine? If so, then there
might be a hidden "^M" at the end of the line. This would show up as a "?".
Do a "od -c < ks.cfg" and you'll see the "\r" characters.

Hope this helps,

Ajay





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]