Plink命令输出返回Source和Destination路径之间的空格 [英] Plink command output returns whitespace in between of Source and Destination path

查看:94
本文介绍了Plink命令输出返回Source和Destination路径之间的空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用CVCP命令将文件从一个位置复制到另一个位置,然后使用plink命令工具执行它。 Plink命令使用Windows应用程序正常工作,但当从IIS返回
plink命令输出时,返回源和目标路径之间的空格。我是使用.net进程调用plink exe。

I am trying to copy a file from one location to another using CVCP command and executing it using plink command tool. Plink command works fine using windows application but returns whitespaces in between of source and destination path when plink command output is returned from IIS. I am calling plink exe using .net process.

示例:

42之后的第一个空白,123之后的第二个空白和US_72之后的第三个空白

First whitespace after 42, second after 123 and third after US_72

命令   - >   / usr / cvfs / bin / cvcp / folder20 / AAA / folder1 / BBB / Core / 42   4768 / c945017e-68f4-425e-a533-83d0a614a256.mov / folder20 / AAA / folder1 / directory 123 456 / Gladiator_2000_Th_US_72519 / SPE_Gladiator_2000_2398_ProRes422_Master_HD_ US_72  
519.mov

Command  ->   /usr/cvfs/bin/cvcp /folder20/AAA/folder1/BBB/Core/42  4768/c945017e-68f4-425e-a533-83d0a614a256.mov /folder20/AAA/folder1/directory123 456/Gladiator_2000_Th_US_72519/SPE_Gladiator_2000_2398_ProRes422_Master_HD_US_72  519.mov

请为上述问题提出解决方案。

Please suggest the solution for the above problem.

谢谢,

Akhil Gupta

Akhil Gupta

推荐答案

我注意到上述问题还有一件事。如果我在启动cvcp命令之前尝试给出32个空格,那么它可以正常工作。这是否意味着在从服务器返回plink命令输出时,它会修剪32个字符?

I have noticed one more thing regarding the above problem. If I try to give 32 whitespaces before starting the cvcp command then it works fine. Does it mean that while returning the plink command output from server its trimming out the 32 characters?

请提供反馈。

谢谢,

Akhil Gupta

Akhil Gupta


这篇关于Plink命令输出返回Source和Destination路径之间的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆