- 论坛徽章:
- 0
|
本帖最后由 sunshinelzy 于 2012-07-24 18:04 编辑
附上执行过程
这个是192.168.72.2 上执行的- [root@LinuxServer FTP]# echo 123 >/urfile
- [root@LinuxServer FTP]# sh n.sh
- Connected to 192.168.72.8 (192.168.72.8).
- 220 (vsFTPd 2.2.2)
- ---> SYST
- 530 Please login with USER and PASS.
- ---> USER root
- 331 Please specify the password.
- ---> PASS XXXX
- 230 Login successful.
- ?Invalid command
- ---> CWD /mnt/hgfs/MyTools/FTP
- 250 Directory successfully changed.
- ---> PWD
- 257 "/mnt/hgfs/MyTools/FTP"
- Passive mode off.
- ---> PORT 192,168,72,2,128,119
- 200 PORT command successful. Consider using PASV.
- ---> LIST .
- 150 Here comes the directory listing.
- -rwxrwxrwx 1 0 0 0 Jul 24 08:21 aaa.tar
- -rwxrwxrwx 1 0 0 230 Jul 23 09:56 ftp.sh
- -rwxrwxrwx 1 0 0 208 Jul 24 09:52 n.sh
- -rwxrwxrwx 1 0 0 4 Jul 24 09:54 urfile
- 226 Directory send OK.
- ---> CWD /mnt/hgfs/MyTools/FTP
- 250 Directory successfully changed.
- ---> PORT 192,168,72,2,128,120
- ---> NLST urfile
- ---> DELE urfile
- 550 Delete operation failed.
- ---> QUIT
- 221 Goodbye.
复制代码 顺便还测试了下本机执行该代码成功- [root@localhost FTP]# sh n.sh
- Connected to 192.168.72.8 (192.168.72.8).
- 220 (vsFTPd 2.2.2)
- ---> SYST
- 530 Please login with USER and PASS.
- ---> USER root
- 331 Please specify the password.
- ---> PASS XXXX
- 230 Login successful.
- ?Invalid command
- ---> CWD /mnt/hgfs/MyTools/FTP
- 250 Directory successfully changed.
- ---> PWD
- 257 "/mnt/hgfs/MyTools/FTP"
- Passive mode off.
- ---> PORT 192,168,72,8,169,26
- 200 PORT command successful. Consider using PASV.
- ---> LIST .
- 150 Here comes the directory listing.
- -rwxrwxrwx 1 0 0 0 Jul 24 08:21 aaa.tar
- -rwxrwxrwx 1 0 0 230 Jul 23 09:56 ftp.sh
- -rwxrwxrwx 1 0 0 209 Jul 24 09:43 n.sh
- 226 Directory send OK.
- ---> CWD /mnt/hgfs/MyTools/FTP
- 250 Directory successfully changed.
- ---> PORT 192,168,72,8,162,27
- ---> NLST /urfile
- ---> QUIT
- 221 Goodbye.
- [root@localhost FTP]# cd /
- [root@localhost /]# ls
- bin cgroup etc lib media mnt opt root selinux sys usr
- boot dev home lost+found misc net proc sbin srv tmp var
复制代码 感谢所有技术性回复的朋友
刚刚翻出了 之前备份的红帽6.0 workstation
在上面跑通过了 完美无问题
可能是前几天蓝屏的时候虚拟机系统中的某些文件损坏了导致的问题
不再纠结 做结贴 |
|