FTP problems with several clients

  • Thread starter Thread starter Stuart Rogers
  • Start date Start date
S

Stuart Rogers

I am trying to setup a website on a server and used ws_ftp to upload my cgi
scripts. I used ascii mode to do the xfer but the scripts wont run. On
investigation I find that they still have the CR/LF (ie are in DOS mode). I
have tried cuteFTP and AbsoluteFTP clients as well as the W2K FTP command
line but I always end up with the same file on the unix machine in DOS
mode.

Has anyone any ideas why? I am running W2K with SP4, I also have tried
disabling my firewall to no effect.

Stuart
 
I am trying to setup a website on a server and used ws_ftp to upload my cgi
scripts. I used ascii mode to do the xfer but the scripts wont run. On
investigation I find that they still have the CR/LF (ie are in DOS mode). I
have tried cuteFTP and AbsoluteFTP clients as well as the W2K FTP command
line but I always end up with the same file on the unix machine in DOS
mode.

Has anyone any ideas why? I am running W2K with SP4, I also have tried
disabling my firewall to no effect.

Stuart

Set your text editor options to use UNIX style line endings.
 
Stuart Rogers said:
I am trying to setup a website on a server and used ws_ftp to upload my cgi
scripts. I used ascii mode to do the xfer but the scripts wont run. On
investigation I find that they still have the CR/LF (ie are in DOS mode). I
have tried cuteFTP and AbsoluteFTP clients as well as the W2K FTP command
line but I always end up with the same file on the unix machine in DOS
mode.

Can you run an FTP client on the UNIX box and pull the files over?
Do you still have the problem?

Are your cgi scripts in straight ASCII or Unicode?

You might try the Unix stream editor SED to translate outside of
FTP. This can be done on either the UNIX side or with a ported
version


sed 's/.$//' # assumes that all lines end with CR/LF
 
I am trying to setup a website on a server and used ws_ftp to upload
my cgi scripts. I used ascii mode to do the xfer but the scripts wont
run. On investigation I find that they still have the CR/LF (ie are in
DOS mode). I have tried cuteFTP and AbsoluteFTP clients as well as the
W2K FTP command line but I always end up with the same file on the
unix machine in DOS mode.

Has anyone any ideas why? I am running W2K with SP4, I also have tried
disabling my firewall to no effect.

Stuart

Well I have sorted my problem. The server had 'No ASCII Downloads' set
on!!!! No wonder I could not xfer ascii files. Anyway since I only have FTP
access I've had their webmaster fix it!

Stuart
 
Back
Top