- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
int message2 = -1;
for (int i = 0; i < 5; i++)
{
QFile f;
f.setFileName(QString("/var/log/messages.") + QString::number(i));
if (f.exists())
{
message2 = i;
break;
}
}
if (message2 != -1 )
QFile::copy(QString("/var/log/messages.")+QString::number(message2), QString(NMP_DATA_DIR) + QString("messages.") + QString::number(message2) +"-"+ _section);