[Anthill] Anthill Scripts Have DOS File Format?

Andrew Swan andrews at bisinfo.com.au
Mon Nov 29 23:57:20 CST 2004


Hi All,

I'm new to Anthill - I have just got the "CVS Anthill-Example" project
working on my server (RedHat Linux 7.3 running Tomcat).

I had a problem however - the shell scripts "getWorkingProject.sh" and
"getRevisionsSince.sh" did not work properly. The symptoms were:
1. nothing (zero bytes) in the "CVS_Anthill-Example-x.x.xxx-rev.log" file
2. nothing (zero bytes) in the "CVS_Anthill-Example-x.x.xxx-build.log" file
3. the Tomcat log file "catalina.out" had garbled error messages saying that
the commands in those scripts were failing (e.g. paths not being found by
the "cd" command even though they were valid, CVS commands failing even
though they were valid)

After much head-scratching, I fixed these problems by writing new copies of
these two scripts, containing exactly the same commands. I'm not sure why
this worked - I can only assume that the original versions contained some
weird line terminator or other unprintable character. In fact, when I load
the original scripts into the "vi" editor, it says they are in "DOS" format.
I take this to mean they had non-Linux/Unix line terminators (e.g. CR/LF vs
LF, etc.). This would explain why:
a. the errors were happening in the first place (e.g. the "cd" command was
trying to change to a path containing an illegal character)
b. the log messages were garbled (because the unprintable characters were
causing them not to print properly)

So my questions are:
- has anyone else had this problem (which seems to be a fundamental problem
with the core Anthill scripts)?
- is fixing these two scripts enough, i.e. will I run into the same problem
with any other scripts used by Anthill (if there are any, I don't know
because I've only been running it for a few hours)?

Thanks for any help,

Andrew




More information about the Anthill mailing list