FTP problems with several clients

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
 
B

BobC

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.
 
M

Matt Hickman

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
 
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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top