linux - 使用 staf 将文件从 Linux 复制到远程 Windows 机器

标签 linux windows staf

假设以下错误是因为远程系统上不存在本地系统上的相同路径。
有没有办法指定在远程系统上保存的替代路径?

[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



错误信息:

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. 

最佳答案

找到正确的命令:

staf local FS COPY FILE /root/scripts/tests/script.bat TODIRECTORY "C:\" TOMACHINE remoteVM

关于linux - 使用 staf 将文件从 Linux 复制到远程 Windows 机器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22019066/

相关文章:

linux - 重定向/管道 wget 下载直接进入 gunzip

testing - 在 STAF/STAX 中导入 json

linux - 同台机器上的员工副本 : Error registering with STAF, RC:10

linux - 在 Linux 上使用手动 STAF 命令

linux - 执行脚本后,PowerShell 窗口始终会被清理

linux - bash 脚本中的 "For"循环只运行一次

php - 跟踪用户的带宽

c++ - 如何安全地将对象(尤其是 STL 对象)传入和传出 DLL?

c - 将可变长度结构从用户模式传递到内核模式

C++:尝试为控制台创建事件驱动(但遇到问题)