Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Unix, config files, and ^M
Andy Knipp
So, for those who have Unix and people hacking config files with DOS, how do you handle the ^M issue?
Normally it does not matter, though I have noticed some perl scripts will not run if there is a ^M on the #!bin/iwperl line.
However we just had an ugly one. someone changed iw.cfg and when there was an iwreset -ui TS would not come back up.
Goth this error in the iwserver.log:
Syntax error on line 425 of /u03/iw-home/iw-webd/conf/httpd.conf:
ProxyRemote takes two arguments, a scheme, partial URL or '*' and a proxy server
/u03/iw-home/iw-webd/bin/iw.webd start: iwwebd could not be started
Lead me to iw.cfg, ran dos2unix & everything was happy.
I could put dos2unix in my workflow as an external task, but I am curious if there are other options.
I am not certain what editoris putting the ^M in.
Andy
Find more posts tagged with
Comments
There are no comments yet