Re: Frontpage, CGI, perl and uploading

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andrew Murray (SPAMadBUSTERmurray_at_iinet.net.au)
Date: 10/17/04


Date: Sun, 17 Oct 2004 11:50:36 +0800

You need to set the file permissions (are you on a Unix server or Windows?)

i on Windows, I expect you need to have the perl interpreter running on Windows,
if it is unix, you need to set the file permissions, the common one is chmod 755.

Remember open perl scripts in Notepad only (or other pure ascii text editor - FP
editor is not suitable for this) not in Wordpad, else you'll screw up the
text-only format.

Publishing cgi files by FTP is probably the best way, but you risk messing up the
FP extensions if so.

"Richard Bell" <rbell01824@earthlink.net> wrote in message
news:8943n01uiroj5rsgmq8cnrmpl7t6rfitnc@4ax.com...
> I'm new to FrontPage and have encountered a rather strange problem I
> don't understand. Here are the symptoms:
>
> I've created a simple page (has a form with a submit button whose
> action points to /cgi/test.cgi).
>
> /cgi/test.cgi is a perl script that simply writes a trivial web page (
> "hi dude").
>
> I publish the page and cgi
>
> When I click on the submit button I get a server 500 error
>
> Now here is where it gets strange ... if I open the published
> /cgi/test.cgi file on the server and then save it (no edits made) and
> try the submit button again all is well!
>
> I recall from some years back that there is a difference in Windows
> and Unix flavors about the last character in the file (a 0x00 if I
> recall). I'm just guessing that by opening and then closing the the
> /cgi/test.cgi file I'm 'Unixifing' the /cgi/test.cgi file so now
> things work. The question is what do I do on the FrontPage side to
> tell it that it's publishing to a Unix system so that it publishes
> Unix compatible files?
>
> Thanks.



Relevant Pages

  • Re: What is the more popular UNIX flavor?
    ... about my experience with Solaris and Cygwin. ... installing packages. ... needing eg tftp you only need to activate on a Unix system. ... probably need installing first on the equivalent Windows system. ...
    (comp.unix.questions)
  • Re: Five Architectural Flaws in Windows Solved In Mac OS X
    ... But it is still an improvement over Unix, wherein *any executable* can be highly privileged and interact with the user. ... The usual security precautions prevent unauthorized people from doing this, but that's true on Windows also. ... I just got thru upgrading the wifes Mac to Tiger and hpfs is the default. ... This is a more advanced design that Unixes have been trying to duplicate by adding thread support. ...
    (comp.sys.mac.advocacy)
  • Re: Linux no threat to Microsoft
    ... originally developed for Unix. ... Windows has't come on any of the machines I've ever purchased. ... Yet over those years Linux Market Share on the desktop has actually ... philosophy of Apple - later adopted by Microsoft. ...
    (comp.os.linux.setup)
  • Re: OS X "Security" myths
    ... >> lot of UNIX systems down to their knees. ... >>> their code, so they concentrate on developing exploits for Windows, ... > It does tell me that there is not much "boast factor" for malware ... Just like the Hackers convention in Las Vegas known as ...
    (comp.sys.mac.advocacy)
  • Re: Wozu Linux privat einsetzen?
    ... > Open Source bzw. GNU sind nicht an eine bestimmte Plattform gebunden. ... Windows ist nun mal nicht OpenSource. ... > Unix ist genauso gewachsen wie DOS, OS/2, Windows. ...
    (de.comp.os.unix.linux.misc)