Elliot Rusty Harold: Much Respect Is Due
I had a problem with a Perl script that was returning:
127 CGI returned nonzero status
/usr/bin/nice:
/kunden/homepages/[omitted]/cgi-bin/quickregister/scripts/login.cgi:
No such file or directory
STDOUT OK STDERR OK
I looked and looked, but could not find any problems. All the files I was calling were in that directory, but I hard coded paths anyhow, and still got the same problem. I even went so far as to take the functions I was referencing from the referrenced files and put them in the callling script so that I wasn't calling any external files. Still got a No Such File or Directory error. WTF??
Enter Elliot.
In his supreme prescience, Elliot made this very nice post to point out what an idiot I was going to be several months in the future. He did this so it could get indexed by Google in plenty of time for me to be able to find it. Very wise on his part, else I would have still been stuck banging my head on my keyboard. Anyhow, Elliot points out in this post that if you don't use a Carriage Return/Line Feed (CR/LF) and just use a carriage return (CR) after your shebang line (that's the #!usr/bin/perl that starts every perl file), perl may get confused about what your asking and crap out.
In disbelief I tried his fix. IT WORKED! There is no way it could/should be that simple, right? My masculinity is still secure even if I only used CRs, right? So now Elliot, I bestow upon you a beautifully keyword rich link:
|
|