in reply to Log rotator in perl

But as soon I try to run the program intepreter in my window stops and the program closes.

Then this tutorial is for you Behind the GUI lives the Shell

Treasure trove of shell links

See also