g++ -o logRotator logRotator.cpp