Hi guys
I would like to compare the (screen) output of one bash script with the (screen) output of another bash script to ensure the output is exactly the same.
The reason for this is that I am receiving a consolidated data feed from an IP address and have moved some of the data feed to a 'new' source IP address. I will turn off the feed from the original once satisfied that the new is receiving the same data. The format of the output from the scripts are exactly the same.
Tried so far
./IDCGRE.sh | grep FX.CK | diff < ./IDCGRE2.sh
./IDCGRE.sh | grep FX.CK | ./IDCGRE2.sh | diff
diff "./IDCGRE.sh | grep FX.CK" ./IDCGRE2.sh
I'll tail 5 seconds worth of data every 60 seconds into a file for each bash script and then run diff on the output files. Execution start time will cause some differences at the begining/end of file.
Using this helpful method
http://www.bashcookbook.com/bashinfo...ripts/timeout3
Would just like to know if there is a way to compare output rather than files with diff or any other?