Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Text File Busy - or not?

by cbro (Pilgrim)
on Jun 26, 2003 at 15:51 UTC ( #269278=note: print w/replies, xml ) Need Help??

in reply to Text File Busy - or not?

Doing a google search for, "CGIWrap error text file busy", I found:
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. This is typically a problem if the script was edited or uploaded from a DOS/Windows/Macintosh station to a unix based server.

Replies are listed 'Best First'.
Re: Re: Text File Busy - or not?
by freddo411 (Chaplain) on Jun 26, 2003 at 18:01 UTC
    It helps a lot if you have shell access to the machine where the script resides. If you do then:

    To see if you have extra line end characters:
     vi <script name>
    you'll see a ^M at the end of each line. To quit vi:

    To fix this (on many unix flavors):
     dos2unix <script name> <script name>  

    Uploading the file in "text" mode in some ftp clients will automatically convert the line enders for you when performing an upload/download. Note that some ftp clients DON'T do this, YMMV. Binary mode is /Absolutely Necessary/ if you uploading gifs, jpgs, etc. Some ftp clients have an "automatic mode" which will use what it thinks is the right mode depending on the file extension. Again, YMMV. Cheers

    Nothing is too wonderful to be true
    -- Michael Faraday

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://269278]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2018-01-21 22:40 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (230 votes). Check out past polls.