smbget smbput

来源:互联网 发布:红蜘蛛调色软件 编辑:程序博客网 时间:2024/05/01 05:57

smbget:

smbget smb://172.0.1.110/tmp/temp.cav --username=test-user --password="" -n

 

其实目前没有smbput可以如下实现:

 

将gen_linux_prj_all.sh放到服务器指定位置:

smbclient //172.0.x.xxx/tmp/ "" -c "mput gen_linux_prj_all.sh" -U test-user

这时会有个Y/N的确认选择

 

如果不想要这个确认可以:

 

smbclient //172.0.x.xxx/tmp/ "" -c "prompt;mput gen_linux_prj_all.sh" -U test-user [-A pws]

原创粉丝点击