# # TODO examples (file and in that file in comment line): # # 1. simple cat # 2. simple cat | grep # 3. advanced grep; as above but continuing with cat # 4. session logger # - log all typed things # - log all recieved things # 4. telnet 1; all command will be dumplicated # 5. telnet 2; all typed all commands will be showed (history) # And here are some examples, which should _always_ works... # # Absolutely basic # ./ep -ii -oo -ee cat # # Sometimes if will no grep informations from /etc/passwd, but it exits # with error code 1. Why? TODO: look at kernel pipes and sleep/rewoke # implementation # # Fixed, works fine. But you must remove first -ii because command # 'cat /etc/passwd' should not recieve data from standart input. # ./ep -ii -o 3.i -ee cat /etc/passwd -- -ii -oo cat -- -o 0.o grep root # # Multi cat (15 times) # ./ep -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat -- -ii -oo -ee cat # # 10 times cat # ./ep -ii -o 2.i cat -- -o 3.i cat -- -o 4.i cat -- -o 5.i cat -- -o 6.i cat -- -o 7.i cat -- -o 8.i cat -- -o 9.i cat -- -o 0.o cat # # 70 times config file loading (testing if SIGSEGV not recieved) # ./ep -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg -f ep.cfg