Re: Problem getting cgi script to work with apache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>On Mon, 2006-06-19 at 11:49 -0700, Knute Johnson wrote:
>> >>Add the following line to the top of your script:
>> >>
>> >>#!/usr/bin/perl
>> >>
>> >
>> >Yes I'm sorry I actually had that in the script and took it out to 
>> >test and didn't put it back before I posted.  It doesn't work with it 
>> >either.
>> 
>> Paul, et al:
>> 
>> I am really screwed up here.  It did need the #!/usr/bin/perl but 
>> that wasn't what was causing my problem.  Seems there is some file 
>> incompatibility with my script file that I downloaded from my BSD 
>> server.  When I copied the file with VIM it got smaller and now works 
>> just fine.  I don't know what the problem is but it works now.  I've 
>> noticed similar problems going the other way, moving files to the BSD 
>> server.
>
>Did the file get smaller by a number of bytes equal to the number of
>lines in the script?
>
>Paul.

Paul:

No it was almost twice as many lines.  But I think that is where the 
problem is.  Another fellow suggested that I try dos2unix and that 
makes a file exactly the same size as the VIM copied one that works.  
I just tried it and that has fixed my problem.  I had no clue that 
perl was sensitive to carriage returns.

-- 
Knute Johnson
Molon Labe...


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux