创建的文件,但没有数据通过在shell中使用FTP上传 [英] Files created but, No data getting uploaded via using FTP in shell

查看:140
本文介绍了创建的文件,但没有数据通过在shell中使用FTP上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用命令



ftp -n -s:C:\FTP_cmd.txt ftp.madrecha.com $ b

FTP_cmd.txt 文件包含

  user 
myName@domain.com
Pa $$ Word
将C:\AccessDocumentation.pptx
退出

该文件正在服务器上创建。但是,大小是 0字节。文件中没有数据。我试图使用FileZilla上传使用相同用户的相同文件。这是成功的,文件是用352 KB创建的



命令中存在问题还是服务器端问题?



PS:我尝试使用 cmd (在windows上)以及 Powershell (在Windows上)运行。但导致相同的问题。



预先感谢。


$ b

更新:附加命令运行的屏幕截图。 / p>

我现在没有评论的声望,所以我正在写我的猜测作为答案。



我认为put命令必须是小写。
此外,您应该检查文件权限,您可能有权访问FTP服务器,但无权读取要复制到服务器的文件。


I am using command

ftp -n -s:C:\FTP_cmd.txt ftp.madrecha.com

the FTP_cmd.txt file contains

user
myName@domain.com
Pa$$Word
Put C:\AccessDocumentation.pptx
quit

The file is getting created on server. but, size is 0 bytes. No data in the file. I tried using FileZilla to upload same file using same user. That was successful and file was created with 352 KB

Is there issue in the command or this is server side issue?

PS: I tried running using cmd (on windows) and also on Powershell (on windows). But resulted in same issue.

Thanks in advance.

UPDATE: Attaching screenshot of the command run.

解决方案

I don't have the reputation to comment at the moment, so I'm writing my guesses as an answer.

I think the "put" command has to be lowercase. Additionally you should check the file permissions, you may have write access to the FTP server but no right to read from the file you want to copy to the server.

这篇关于创建的文件,但没有数据通过在shell中使用FTP上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆