首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用staf将文件从linux复制到远程windows机器

使用staf将文件从linux复制到远程windows机器
EN

Stack Overflow用户
提问于 2014-02-25 15:40:03
回答 1查看 1.4K关注 0票数 0

总结以下错误是因为远程系统上不存在本地系统上的相同路径。

是否有一种方法可以指定在远程系统上保存的可选路径?

代码语言:javascript
复制
[root@linuxsystem mydir]# staf local FS COPY FILE /root/scripts/tests/script.bat TOMACHINE remoteVM
Error submitting request, RC: 17
Additional info
---------------
\root\scripts\tests\script.bat

错误信息:

代码语言:javascript
复制
17  File Open Error
This indicates that there was an error opening the requested file.
Some possible explanations are that the file/path does not exist, contains invalid characters, or is locked.

Note: Additional information regarding which file could not be opened may be provided in the result passed back from the submit call. 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-02-27 13:34:04

找到正确的命令:

代码语言:javascript
复制
staf local FS COPY FILE /root/scripts/tests/script.bat TODIRECTORY "C:\" TOMACHINE remoteVM
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22019066

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档