Results 1 to 5 of 5
We need for one a lart program, but as a basis we should make a liblart, so sysadmins can make custom LART apps. Like this one, I call it badboy, ...
- 12-01-2005 #1
all about LART's
We need for one a lart program, but as a basis we should make a liblart, so sysadmins can make custom LART apps. Like this one, I call it badboy, a LART automation tool for those asking homework questions on the forums, souce included
Hehe, call me crazy, hmm, maybe I should add a few options included in the description of man lart, or at least read them from a config file.Code:#include <iostream> #include <lart.h> #include <fstream> int main(char *argv[]) ( if (argv[1] == "warn") ( ofstream warn; string path == "/home/" + argv[2] + "/warning"; warn.open(path); warn << "THIS IS A WARNING\n"; warn << "STOP CHEATING ON SCHOOL WORK!\n"; warn << "FAILURE TO COMPLY WILL EARN YOU A LART\n"; warn << "YOU HAVE BEEN WARNED\n"; warn.close(); cout << argv[2] << " has been warned.\n"; cout << "use: badboy lart " << argv[2] << ", to LART the user\n"; ) if (argv[1] == "lart") ( cout << "LARTING " << argv[2] << " PLEASE WAIT...\n"; lart(argv[2]); cout << "LART COMPLETE, MAYBE NOW " << argv[2] << " WILL LEARN A LESSON\n"; ) if (argv[1] == "") ( cout << "Use badboy -h for help\n"; ) if (argv[1] == "-h" ( cout << "BADBOY - LART AUTOMATION TOOL\n"; cout << "badboy warn [user] - scold user with warning letter\n"; cout << "badboy lart [user] - LART a user\n"; ) return 0; )Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.
- 12-01-2005 #2Linux Engineer
- Join Date
- Jan 2005
- Location
- Chicago (USA)
- Posts
- 1,028
Luser Attitude Readjustment Tool?
- 12-01-2005 #3
Originally Posted by a thing
yup
Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.
- 12-01-2005 #4Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
Sounds neat! But some short sleep's between the text pieces would be cool too :P
Originally Posted by Stefann
- 12-01-2005 #5Eh? of like use a sleep(5); line to pause the output, maybe a good idea, but currently the code is just a joke I made for those asking homework questions so it doesn't really matter.
Originally Posted by jaboua Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.


Reply With Quote
