read input from command line, save post file in OUTPUT dir