Advertisement
Guest User

linux stress check

a guest
Apr 1st, 2011
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. while (true); do
  4.    ./gen > input
  5.    ./solution1 < input > output1
  6.    ./solution2 < input > output2
  7.    if (diff output1 output2); then
  8.       cat output1
  9.    else
  10.       break
  11.    fi
  12. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement