title: Java code to press ( Shift +page down) keys at a time
body: <p>I am trying to run a process which generates a log file in unix path.
  I have to take screenshot of this unix log file. The unix log file has multiple pages. Could someone help me . i need java code which will open the unix file, and takes the screen shot of each page.</p>
  
  <p>What i did is :
  - I opened the unix file and passed "cat  | less
  - <strong>after this code has to press pagedown key till it identify the end of file ( in my unix lof file it shows "END" when it reaches end of file)</strong> and  takes screenshot.</p>
  
  <p>code is written for openeing the unix file, passing the command and taking screennshot. For the bolded text i need the code.</p>