a common problem. it is because the file was saved with window line-endings. this means that when you open it on a unix box, you will see '^M' at the end of every line.
if you have access to a unix shell account, you can run the conversion program as follows: # dos2unix -n infile.cgi outfile.cgi At 22:11 07/07/2002 +0800, Connie Chan wrote: >So what's your error message you got ? and where you got >the error? And what is the "boxes" mean ? I dont' see any >boxes there. so what is your text editor for writing this script ? >But the most important things are : >1. Do you have the right to run CGI at your server ? >2. Do you know if you are pointing your perl compiler >at a right path( #!/usr/bin/perl) ? You can't just copy this from >book. Different server may config it at different location.. > >Rgds, >Connie > > > >----- Original Message ----- >From: "Henk van Ess" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Sunday, July 07, 2002 9:59 PM >Subject: Odd boxes after uploading > > > > Dear all > > > > I just uploaded the following .cgi to my server: > > > > #!/usr/bin/perl > > print "Content-type:text/html\n\n"; > > print "Show me the monkey"; #this line prints the sentence "Show me the >monkey" > > > > Even after I chmod'ed it to 751 or 755, I got an error! So I > > downloaded the script to see what went wrong. Suddenly I've got > > "boxes" added in the text - see attachment (I hope I'm allowed to send > > this attachment) > > > > I tried FlashFXP and WS-FTP for uploading the file, but both gave the > > same result. > > > > What is wrong? > > >---------------------------------------------------------------------------- >---- > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] Matthew Harrison Internet/Network Services Administrator www.genestate.com This e-mail (and any attachments) is confidential and may contain personal views which are not the views of Genestate Systems UK unless specifically state. If you have received it in error, please delete it from your system, do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that Genestate Systems UK monitors all e-mails send or received. Further communication will signify your consent to this. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]