Shell Scripts, CF and those Pesky Macintosh Line Breaks

by Stephanie Rewis on November 30, 2004

OK, so it took me a bit longer than Sheri German to get everything
set up right, but I finally have JRun and ColdFusion running on my OS X
Panther install! I have been wanting to do this for about a year. But
all the stories I read online seemed to make it sound like either
rocket science or torture — and there is currently room for neither in
my schedule. My schedule stays very full.

Many thanks to Tom Pletcher for writing an awesome article, ColdFusion on OSX,
that took me through every step of the process. Very clearly. I had one
little problem at the end and that was in getting the shell script to
run on start up. I kept getting a terminal error on login. I could,
however, use the same command in the terminal and start the server
right up. It was very puzzling. Many, many thanks to Paul Newman, who
receive's Stephanie's “Today's Most Awesome Human” award! Paul hung with me (LATE) till he figured the problem out.

It seems that sometimes, when you use BBEdit to create the script
(and yes, I'm still using version 6.5), it uses Macintosh line breaks
instead of the Unix variety. So the fix was — Open the file > Edit > Save As > click Options > choose Unix line breaks. It works!

I can't WAIT till tomorrow (when my eyes can open again) when I can
try hooking DW up to my CF server… Maybe my CF class at MAX, and the
myriad of CF tutorials here at CMX, will actually get put to use — on
my little old Mac. I never thought I'd see the day. Thanks Tom, for
making me brave enough to try this! And Paul, I'm sending your gotoand
play shirt out tomorrow… I swear! ;)

Leave a Comment