This commit is contained in:
dmarakom6 2021-03-25 10:41:56 +02:00
parent 33effe0923
commit fd1db35604
6 changed files with 133 additions and 0 deletions

22
util/failed/disfailed.cpp Normal file
View file

@ -0,0 +1,22 @@
/*
shellnotes - disfailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
std::ofstream outfile ("../../logs/disfailed.txt", std::ios_base::app);
outfile << "DISABLING FAILED IN " << dt << "\n";
outfile.close();
return 0;
}

22
util/failed/enfailed.cpp Normal file
View file

@ -0,0 +1,22 @@
/*
shellnotes - enfailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
std::ofstream outfile ("../../logs/enfailed.txt", std::ios_base::app);
outfile << "ENABLING FAILED IN " << dt << "\n";
outfile.close();
return 0;
}

22
util/failed/ifailed.cpp Normal file
View file

@ -0,0 +1,22 @@
/*
shellnotes - ifailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
std::ofstream outfile ("../../logs/ifailed.txt", std::ios_base::app);
outfile << "INSTALLATION FAILED IN " << dt << "\n";
outfile.close();
return 0;
}

23
util/failed/sdfailed.cpp Normal file
View file

@ -0,0 +1,23 @@
/*
shellnotes - sdfailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
ofstream sdfailed;
std::ofstream outfile ("../../logs/sdfailed.txt", std::ios_base::app);
outfile << "INVALID PATH FOR DEFAULT EDITOR/FOLDER IN " << dt << "\n";
outfile.close();
return 0;
}

22
util/failed/ufailed.cpp Normal file
View file

@ -0,0 +1,22 @@
/*
shellnotes - ufailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
std::ofstream outfile ("../../logs/ufailed.txt", std::ios_base::app);
outfile << "UPDATE FAILED IN " << dt << "\n";
outfile.close();
return 0;
}

View file

@ -0,0 +1,22 @@
/*
shellnotes - uninfailed.cpp
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
*/
#include <iostream>
#include <fstream>
#include <ctime>
using namespace std;
int main()
{
time_t now = time(0);
char* dt = ctime(&now);
std::ofstream outfile ("../../logs/uninfailed.txt", std::ios_base::app);
outfile << "UNINSTALLATION FAILED IN " << dt << "\n";
outfile.close();
return 0;
}