nice.

On a related note...some of our developers use the EPIC plugin in eclipse to
create/modify remote .pl and .pm files.  Same issue (CR/LF) - we usually run
a clean.pl script recursively on directories on the dev server during
development/prior to generating a build.  Needless to say, this gets old
quickly when trying to do rapid development/testing. Does anybody know how
to get eclipse to do the right thing using the Remote Systems perspective so
we don't have to manually run our cleanup script during development?

Thanks,

Steve

On Tue, Jun 29, 2010 at 1:21 PM, Tosh Cooey <t...@1200group.com> wrote:

> vi?  I just send mine to India and pay some guy $1 to remove them with his
> teeth.
>
> Tosh
>
>
>
> Devin Teske wrote:
>
>> On Tue, 2010-06-29 at 09:33 -0500, Chris Bennett wrote:
>>
>>> Tosh Cooey wrote:
>>>
>>>> Maybe I should have followed up instead of sending this so quickly, oh
>>>> well.
>>>>
>>>> Yes the Windows CR/LF was the problem.  So the situation is resolved,
>>>> but I have no clue why the same file with different names was inconsistent
>>>> in execution.
>>>>
>>>> Oh well, don't look a gift horse in the mouth I guess, thanks Cosimo!
>>>>
>>>> Tosh
>>>>
>>>>
>>>> Tosh Cooey wrote:
>>>>
>>>>> Ha ha... Yes I wondered about that too, except then why would it run as
>>>>> mailfile2.pl after only: cp mailfile.pl mailfile2.pl ?
>>>>>
>>>>> However the programmer working on that file uses Windows and so who
>>>>> knows, maybe this is the solution, but not the answer...
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Tosh
>>>>>
>>>>>
>>>>> Cosimo Streppone wrote:
>>>>>
>>>>>> On Tue, 29 Jun 2010 14:37:38 +0200, Tosh Cooey <t...@1200group.com>
>>>>>> wrote:
>>>>>>
>>>>>>  I have an application with a program called [mailfile.pl] which runs
>>>>>>> under MP::Registry and is accessed via some mod_rewrites.
>>>>>>>
>>>>>>> Today I pushed a new version from my DEV server to the WWW server
>>>>>>> using rsync.  Obviously it was working perfectly on DEV.
>>>>>>>
>>>>>>> However the new [mailfile.pl] died with an error on WWW:
>>>>>>>
>>>>>>> [error] (2)No such file or directory: exec of '/srv/www/htdocs/b2b/
>>>>>>> mailfile.pl' failed
>>>>>>> [error] Premature end of script headers: mailfile.pl, referer:
>>>>>>> http://www...
>>>>>>>
>>>>>> That reminds me:
>>>>>>
>>>>>> 1) chmod +x mailfile.pl
>>>>>> 2) dos2unix mailfile.pl
>>>>>>
>>>>>>  Perhaps cp removes the wrong line endings?
>>>
>>> Anyway, you can also fix files with vi
>>> :%s/ctrl-v ctrl-m//g
>>>
>>> Works like a charm. I don't have dos2unix.
>>>
>>> Chris Bennett
>>>
>>>
>> Another way in vi ...
>>
>> Set "fileformat" to "unix":
>>
>> :set ff=unix
>> :w
>>
>>
>>
>>
> --
> McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
>

Reply via email to