上執行命令我有Linux的腳本和兩個不同的Solaris機器,一個是ISO-8859-1
另一個是UTF-8
不能遠程計算機
當我和UTF-8
運行它,它工作正常,但與ISO我得到一個錯誤:
我需要如何執行它。
如果我coppy我scrit與Solaris有異,並執行那裏做工精細沒有錯誤
我的執行代碼:
using (var sftp = new Sftp())
{
try
{
sftp.Connect(target.FullyQualifiedDomainName);
sftp.Authenticate(target.UserName, crypto.TwoWayDecrypt(target.Password));
sftp.Put(AssemblyDirectory + "\\Scripts\\solaris_perf_data.sh", "perf_data.sh", CopyMode.Copy);
}
finally
{
sftp.Close();
}
}
ssh.Execute(chModCommand);
//error here
result = ssh.Execute(executeCommand).ToString();
我得到的錯誤是:
copying script file and executing script on host Solaris 10 region settings
(france). Error Message: System.IO.IOException: ./perf_data.sh[5]:
TotSize==+utilisés,: numéro incorrect at Dart.Ssh.Ssh.Execute(String command,
Object state) at Virtustream.CAS.DataCollector.Library.DataCollectors.SolarisDataCollector.GetData(Boolean
isInventory, String subject, String executeCommand)
你得到的錯誤是什麼? –
@sudo_O在主機Solaris 10區域設置(法國)上覆制腳本文件並執行腳本時出錯。錯誤消息:System.IO.IOException:./perf_data.sh[5]:TotSize == +utilisés,:num_root Virtustream.CAS.DataCollector.Library上的Dart.Ssh.Ssh.Execute(字符串命令,對象狀態)不正確.DataCollectors.SolarisDataCollector.GetData(布爾isInventory,字符串主題,字符串executeCommand) – user1406855
這裏我執行iso,在相同的只有改變utf-8它工作正常 – user1406855