簡體   English   中英

使用staf將文件從linux復制到遠程Windows機器

[英]Copy file from linux to remote windows machine using 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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM