FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 10-13-2008, 04:00 PM
Andrew Allen
Default Perl CGI scripts - stripping out unwanted carriage returns etc

I have a number of perl CGI scripts which I wrote some time ago (and
which are working successfully on my website). I've set up a local
server on which to do some development work on the scripts but I can't
get them to work - the error log says:
No such file or directory: exec of '/var/www/cgi-bin/script.cgi' failed
Premature end of script headers: script.cgi etc

By comparing two identical very simple cgi scripts (one works, the other
doesn't), I've traced the problem to, apparently, unwanted carriage
returns which have somehow got into the perl text files. Is there a
quick and easy way (ie piece of software) to strip out these things, or
do I have to do it manually?
Thanks for any help,

CentOS mailing list

Thread Tools

All times are GMT. The time now is 05:56 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org