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

Re: [cobalt-users] raqbackup 2.1 Warning!



On Thu, 30 Aug 2001, Herby K wrote:

} **********************************************************************
} WARNING! 1 bare linefeeds received in ASCII mode
} File may not have transferred correctly.
} **********************************************************************

	Copy the following code to a text file. Using Wordpad on
your Windows machine then ftp'ing it to your server will do the
trick. Name it something like clean_html.sh Once on the server make
it executable (chmod +x) then run it on the problematic file:

	./clean_html.sh orginal_file.cgi clean_file.cgi

	It will remove the offending garbage. Make sure you keep a
copy of the original script and, of course, use this at your own
risk:


#!/bin/sh

###########################################################
# A simple hack to remove carriage returns (^M) from a file
###########################################################
tr -d '\015' < $1 > $2
exit 0



	Peace be with you,

	Brent Sims
	WebOkay Internet Services, LLC
	http://www.WebOkay.net
	mailto: Brent@xxxxxxxxxxx
	(719) 595-1427 (Voice/Fax)