Re: Frontpage, CGI, perl and uploading

From: Richard Bell (rbell01824_at_earthlink.net)
Date: 10/17/04


Date: Sun, 17 Oct 2004 17:56:30 GMT

Thanks for the feedback.

FYI, on my copy of FP 2003 CGI is defaulted to ASCII. Additionally,
I'm able to FTP the CGI directory to the Unix server without any
apparent issue (at least so far) save for the EOL nonsense. Also,
happily, once the permissions are properly set on the Unix side, FP
leaves them alone during a publish.

Regarding permissions, I noticed that there is a "allow scripts or
programs to be run" check box on the properties for directories. I
also bumped across some MS knowledge base entries to the effect that
FP treats CGI-BIN 'special' and sets the execute bit. On my FP the
'allow' is gray and can not be selected. Additionally the Unix server
I'm using stores cgi in CGI not CGI-BIN. Are you aware of any way of
dealing with this?

A bit of investigation verified what you said about the EOL issue.
Using CuteFTP to 'edit' the cgi file without actually changing
anything and then saving it apparently rewrites the lines correctly
(file size on the Unix side remains constant). Interestingly, using
Cute FTP to retrieve the cgi file converts it back to a windows format
(file size increases with the addition of one CR for each line).
Conversely, using a web folder from explorer brings back the real
bytes (Windows file size matches Unix size)! Go figure. In any case,
using explorer to actually retrieve the real bytes from the Unix side
and then examining the files clearly reveals the issue with CR.

I assume from your rather complete comments (thanks, by the way) that
there is no way to configure FP to publish in Unix file format. More
than a bit of a downer that. If there is, I'd like to know as I'm
otherwise relatively happy with FP.

Finally, are you aware of any cgi/pl/php addins for FP that will
improve its ability to deal with this?

Thanks again.

On Sun, 17 Oct 2004 06:56:29 +0100, "Ronx" <ronx917@hotmail.com>
wrote:

>This applies to Unix Servers:
>
>On both the server and your local copy of the web convert the cgi folder to
>subwebs. This allows the safe use of FTP. Never open the cgi folders in
>FrontPage again.
>
>Perl/cgi scripts should be uploaded with a third party FTP client, such as
>cuteFTP, WSFTP etc. Set the client to treat the script files as ASCII text,
>not as binaries. Note that FrontPage will always treat .cgi, .pl and .pm
>files as binaries (FP2003 can be set to use ASCII on these extensions, but
>it is a manual setting - Tools->Options->FTP tag and add the appropriate
>extensions).
>
>When the files are uploaded, use the CHMOD function in the FTP client to
>check the attributes on each file are set to 755:
>Owner Read Write Execute
>Group Read Execute
>Others Read Execute
>
>Some servers do not need the CHMOD operation, but most do.
>
>The major difference between Unix and Windows text files is the EOL
>character -
>Windows uses the combination CRLF, whereas UNIX uses the single character LF
>(I think).
>The extra CR in a Windows file "confuses" the Perl interpreter, and causes
>errors.



Relevant Pages

  • Re: Frontpage, CGI, perl and uploading
    ... Ron Symonds (Microsoft MVP - FrontPage) ... on my copy of FP 2003 CGI is defaulted to ASCII. ... > happily, once the permissions are properly set on the Unix side, FP ... when using FTP - the errors WILL happen, no matter how careful you are. ...
    (microsoft.public.frontpage.client)
  • Re: FTP receive dont work from unix !!!
    ... > I'm trying to get files from unix with ftp-adapter, ... What are the permissions on the file/folder on the Unix Server? ... the user you are connecting to the FTP Server as have the needed ...
    (microsoft.public.biztalk.general)
  • Re: FTP serious error... HELP!
    ... Subject: FTP serious error... ... We are downloading Z/os 1.9 Serverpac but I cant see how I touched our ... I am not sure what UNIX "message catalog" is out of sync with your ftp ... Set 1 msg 2: 125 Sending file via NJE to requested destination. ...
    (bit.listserv.ibm-main)
  • RE: FTP has extra CR
    ... A vendor has been FTPing a file from their mainframe to our Unix ... Do one of us need to change an FTP parm? ... Then ftp the "output.file" to your z/OS system. ...
    (bit.listserv.ibm-main)
  • Re: ftp recursively
    ... Whether you're using ftp, rcp, or rsync is a completely separate issue to whether you're running over ssl. ... There are various clients and servers built on it, including the traditional ftp command-line tools on Unix and Windows. ...
    (comp.lang.python)

Loading