Re: What a strange error...

Tosh Cooey <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Twelve Hundred Group LLC
Message-ID <[email protected]>
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 <[email protected]> 
>> 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
>>
> 

-- 
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.