As an addition. Have been playing with way to resolve issue with the TMP files with long lines in the user Temp Directory.
With the number of attempts to open message that crashes Pegasus for me.
Currently have 12 TMP Files that have this.
All seem to have the same data but different sizes?
These are copied to another directory for test.
.TMP are the ones created by Pegasus
.TMP.zzz are ones that filter out the long lines.
113917 Apr 3 23:51 4XWX6G65.TMP
97417 Apr 3 23:52 4XWX6G65.TMP.zzz
116543 Apr 3 23:51 58JMIS3I.TMP
76007 Apr 3 23:52 58JMIS3I.TMP.zzz
93264 Apr 3 23:51 7CS0R9AD.TMP
76781 Apr 3 23:52 7CS0R9AD.TMP.zzz
116543 Apr 3 23:51 AB88QVLK.TMP
76007 Apr 3 23:52 AB88QVLK.TMP.zzz
93264 Apr 3 23:51 AWL899XA.TMP
76781 Apr 3 23:52 AWL899XA.TMP.zzz
137950 Apr 3 23:51 EFOEAGIK.TMP
96342 Apr 3 23:52 EFOEAGIK.TMP.zzz
137950 Apr 3 23:51 G8L2SMGE.TMP
96342 Apr 3 23:52 G8L2SMGE.TMP.zzz
113917 Apr 3 23:51 JNEJ8N07.TMP
97417 Apr 3 23:52 JNEJ8N07.TMP.zzz
93264 Apr 3 23:51 KRDLBDT3.TMP
76781 Apr 3 23:52 KRDLBDT3.TMP.zzz
113917 Apr 3 23:51 SW6L9YHL.TMP
97417 Apr 3 23:52 SW6L9YHL.TMP.zzz
113917 Apr 3 23:51 VLTRWLQ9.TMP
97417 Apr 3 23:52 VLTRWLQ9.TMP.zzz
93264 Apr 3 23:51 ZTO2GPH8.TMP
76781 Apr 3 23:52 ZTO2GPH8.TMP.zzz
long lines start with -</span> <span data-metadata="<!--(figmeta)
Simple program to convert .TMP to .TMP.zzz
#include <cstring>
#include <iostream>
#include <fstream>
#include <string>
int main(int argc, char* argv[])
{
const size_t MAX_LENGTH = 16384;
char fileout[80];
if (argc != 2)
{
std::cerr << "Usage: " << argv[0] << " <input_file1> <input_file2>" << std::endl;
return 1;
}
strcpy(fileout,argv[1]);
strcat(fileout,".zzz");
std::ifstream inputFile(argv[1]);
std::ofstream outputFile(fileout);
if (!inputFile.is_open() || !outputFile.is_open())
{
std::cerr << "Error: Could not open files." << std::endl;
return 1;
}
std::string line;
while (std::getline(inputFile, line))
{
if (line.length() <= MAX_LENGTH)
{
outputFile << line << "\n";
}
}
inputFile.close();
outputFile.close();
std::cout << "Processing complete. Short lines saved to output.txt." << std::endl;
return 0;
}
Could add code to overwrite TMP with TMP.zzz version, but not clear if way to get Pegasus to run it in a filter or other way before crash is caused.
Ran against all TMP files, but all other the TMP and TMP.zzz files are same.
Could just use a script with this to open file in browser
firefox $(ls -1rt /home/msetzerii/.wine/drive_c/users/msetzerii/Temp/*.TMP | tail -n1)
As an addition. Have been playing with way to resolve issue with the TMP files with long lines in the user Temp Directory.
With the number of attempts to open message that crashes Pegasus for me.
Currently have 12 TMP Files that have this.
All seem to have the same data but different sizes?
These are copied to another directory for test.
.TMP are the ones created by Pegasus
.TMP.zzz are ones that filter out the long lines.
113917 Apr 3 23:51 4XWX6G65.TMP
97417 Apr 3 23:52 4XWX6G65.TMP.zzz
116543 Apr 3 23:51 58JMIS3I.TMP
76007 Apr 3 23:52 58JMIS3I.TMP.zzz
93264 Apr 3 23:51 7CS0R9AD.TMP
76781 Apr 3 23:52 7CS0R9AD.TMP.zzz
116543 Apr 3 23:51 AB88QVLK.TMP
76007 Apr 3 23:52 AB88QVLK.TMP.zzz
93264 Apr 3 23:51 AWL899XA.TMP
76781 Apr 3 23:52 AWL899XA.TMP.zzz
137950 Apr 3 23:51 EFOEAGIK.TMP
96342 Apr 3 23:52 EFOEAGIK.TMP.zzz
137950 Apr 3 23:51 G8L2SMGE.TMP
96342 Apr 3 23:52 G8L2SMGE.TMP.zzz
113917 Apr 3 23:51 JNEJ8N07.TMP
97417 Apr 3 23:52 JNEJ8N07.TMP.zzz
93264 Apr 3 23:51 KRDLBDT3.TMP
76781 Apr 3 23:52 KRDLBDT3.TMP.zzz
113917 Apr 3 23:51 SW6L9YHL.TMP
97417 Apr 3 23:52 SW6L9YHL.TMP.zzz
113917 Apr 3 23:51 VLTRWLQ9.TMP
97417 Apr 3 23:52 VLTRWLQ9.TMP.zzz
93264 Apr 3 23:51 ZTO2GPH8.TMP
76781 Apr 3 23:52 ZTO2GPH8.TMP.zzz
long lines start with -</span>&nbsp;<span data-metadata="<!--(figmeta)
Simple program to convert .TMP to .TMP.zzz
````
#include <cstring>
#include <iostream>
#include <fstream>
#include <string>
int main(int argc, char* argv[])
{
const size_t MAX_LENGTH = 16384; // 16K limit
char fileout[80];
if (argc != 2)
{
std::cerr << "Usage: " << argv[0] << " <input_file1> <input_file2>" << std::endl;
return 1;
}
strcpy(fileout,argv[1]);
strcat(fileout,".zzz");
std::ifstream inputFile(argv[1]);
std::ofstream outputFile(fileout);
if (!inputFile.is_open() || !outputFile.is_open())
{
std::cerr << "Error: Could not open files." << std::endl;
return 1;
}
std::string line;
// Read the file line by line
while (std::getline(inputFile, line))
{
// Only write lines that are within the length limit
if (line.length() <= MAX_LENGTH)
{
outputFile << line << "\n";
}
}
inputFile.close();
outputFile.close();
std::cout << "Processing complete. Short lines saved to output.txt." << std::endl;
return 0;
}
````
Could add code to overwrite TMP with TMP.zzz version, but not clear if way to get Pegasus to run it in a filter or other way before crash is caused.
Ran against all TMP files, but all other the TMP and TMP.zzz files are same.
Could just use a script with this to open file in browser
````
firefox $(ls -1rt /home/msetzerii/.wine/drive_c/users/msetzerii/Temp/*.TMP | tail -n1)
````