Operating Systems > Linux and UNIX

Apache and CGI

<< < (5/5)

Master of Reality:
after doing the 'tr' above it deleted all the content in YaBB.cgi

voidmain:
Notice in my "tr" comand I use two different names. If you write your output to the same filename you are reading the input from you will indeed erase the contents of the file.  So it is a two step process if you use the "tr" method.  That is, do the "tr" command and send the output to a temporary file, then "mv" the temporary file over the original file.  Use the "vim" method if you don't want to have to do two steps, or write a script that goes something like this:


--- Code: ---
--- End code ---

and name it "dos2unix", make it executable and put it in your path. Of course you could also download and install the real "dos2unix" which will probably checks a few more things and come with some documentation. But it ultimately performs the same task.

Here's the RPM:
http://www.rpmfind.net/linux/rpm2html/search.php?query=dos2unix

Use the one for RedHat 7.2 i386.

[ July 26, 2002: Message edited by: VoidMain ]

Master of Reality:
Of course i have dos2unix.
i installed every fucking program (and had to remove lots) on the RedHat installation CDROM. I chose every package.

I got YaBB working now.. no help to their fucking installation guide which made me learn all about permissions again.

Master of Reality:
what error?
you must re-register since this is a completely different board.

Navigation

[0] Message Index

[*] Previous page

Go to full version