diff --git a/sftpbatch b/sftpbatch index 8977671..c2d1e9e 100644 --- a/sftpbatch +++ b/sftpbatch @@ -1,3 +1,3 @@ -put ./Trains/LOGZT1_2024-06-04-10-54-27-273.bin CVRT-D-LOGZT1_2024-06-04-10-54-27-273.bin +put ./Trains/LOGZT1_2024-06-14-14-16-29-560.bin CVRT-D-LOGZT1_2024-06-14-14-16-29-560.bin put ./LOG/LogZT.txt CVRT-LogZT.txt put ./ING/IngLog.txt CVRT-IngLog.txt \ No newline at end of file diff --git a/sources/SFTPServerManager.cpp b/sources/SFTPServerManager.cpp index 9064950..d0e4421 100644 --- a/sources/SFTPServerManager.cpp +++ b/sources/SFTPServerManager.cpp @@ -114,11 +114,13 @@ int CSFTPServerManager::TransferTrainLogToSFTPServer(QString FileName, bool Dete SFTPBatchFile->close(); delete SFTPBatchFile; - Cmd = QString ("sshpass -f ./password sftp -oBatchMode=no -b ./sftpbatch %1@%2").arg(mSFTPLogin).arg(mSFTPServerAddress); + //Cmd = QString ("sshpass -f ./password sftp -oBatchMode=no -b ./sftpbatch %1@%2").arg(mSFTPLogin).arg(mSFTPServerAddress); + Cmd = QString ("sshpass -f ./password sftp -oStrictHostKeyChecking=no -oBatchMode=no -b ./sftpbatch %1@%2").arg(mSFTPLogin).arg(mSFTPServerAddress); + #endif - // qDebug("Commande pour copie du fichier log: %s",qPrintable(Cmd)); + CEngLog::instance()->AddLogString(QString("Commande pour copie du fichier log: %1").arg(Cmd),3); diff --git a/sources/ZTVersion.h b/sources/ZTVersion.h index 5a02589..ef9b5ce 100755 --- a/sources/ZTVersion.h +++ b/sources/ZTVersion.h @@ -29,9 +29,13 @@ #ifndef ZTVERSION_H #define ZTVERSION_H -#define ZT_SOFT_VERSION "V1.26" +#define ZT_SOFT_VERSION "V1.26.1" //LOG DES CHANGEMENTS +//Version 1.26.1 +//-Ajout du flag pour ignorer la clef RSA lors du transfert FTP. Suite aux problemes +// a Beaugrand. + //Version 1.26 //-Ajout de la possibilité d'activer le module SFTP pour copier les logs sans que la // communication avec la CC soit activée (ZT branchée sur le réseau mais interface