Your best friend for file transfer.

Fetch application logoFetch

ascii files (6 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 22 years ago by Paddy Gormley
  • Latest reply 22 years ago from Jim Matthews
  • Paddy Gormley Member

    I'm trying to get my first CGI script working. The current error message tells me that my file needs to be in ascii but probably isn't. The Fetch documentation doesn't meniotn ascii files, but only binhex, etc. Can you tell me which mac file format is the equivalent of ascii?

    Posted 22 years ago #

  • Jim Matthews Administrator

    Fetch refers to ASCII files as Text. So make sure you upload in Text format.

    Jim Matthews
    Fetch Softworks

    Posted 22 years ago #

  • Paddy Gormley Member

    Originally posted by JimMatthews:

    Fetch refers to ASCII files as Text. So make sure you upload in Text format.

    Jim Matthews
    Fetch Softworks

    Jim

    Thanks for this, but it still isn't working. I've tried "Text" format. I've also tried "Raw". I've even tried editing the script remotely via Fetch using BBedit to convert it to ascii. Every time I get the same sort of error message telling me that either the first line of my script is wrong or else the file is not in the right format. I've double-checked the path in the first line of the script, even to the point of copying it from my host's e-mail. So I guess it must be the format.

    Any further thoughts? I'm tearing my hair out.

    Posted 22 years ago #

  • Jim Matthews Administrator

    I would suggest uploading in Text format and then selecting the file and choosing "View Text File" from the Remote menu. Does the file look correct?

    Jim Matthews
    Fetch Softworks

    Posted 22 years ago #

  • Paddy Gormley Member

    Originally posted by JimMatthews:

    I would suggest uploading in Text format and then selecting the file and choosing "View Text File" from the Remote menu. Does the file look correct?

    Jim Matthews
    Fetch Softworks

    Jim

    Thanks for prompt reply. I tried this and looked at the file. It looks fine. Then I set the permissions, tried the Submit and got this message: "Error Message: Exec format error
    Error Number: 8
    This message usually indicates there is a problem with the script itself. Often this indicates either that the #! line of the script is incorrect, or the script was uploaded in binary mode instead of ascii mode. Check to make sure that the script does not have control-M's at the end of every line. That will prevent it from executing. An easy fix that takes care of this most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the first line of the script. "

    Just the same as ever. Any further ideas gratefully received.

    Best wishes

    Paddy

    Posted 22 years ago #

  • Jim Matthews Administrator

    Hmm. Could you upload the file to the incoming directory on ftp.fetchsoftworks.com (leave the User ID and Password fields blank) the same way that you upload it to your site, and then send me the file name (you can email that to support@fetchsoftworks.com). I'll take a look and see what I can figure out.

    Jim Matthews
    Fetch Softworks

    Posted 22 years ago #

Topic closed

This topic has been closed.