EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] database "diff"
From: Pedro Gigoux via Tech-talk <tech-talk at aps.anl.gov>
To: Paul Sichta <psichta at pppl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 20 Mar 2020 17:37:35 -0300
Hola Paul,

I wrote a set of utilities to work with databases, including one to compare .db files (dbdiff.py). I still consider them work in progress from the documentation point of view. You are welcome to use them. You can customize diff_filter() to deal with expected differences between databases generated by different tools. We had that problem when moving from capfast to tdct (where '.NPP' was converted to 'NPP', for instance).


Regards,
Pedro.


On Fri, 20 Mar 2020 at 17:09, Paul Sichta via Tech-talk <tech-talk at aps.anl.gov> wrote:
Many thanks, all.

Stay safe!
-ps


On Fri, Mar 20, 2020 at 4:03 PM Sinclair, John <sinclairjw at ornl.gov> wrote:

 

Hi Paul,

 

I have attached a simple perl file which sorts db records. To compare two db files, sort one and redirect output file file1 then sort the other and redirect to file2. Then compare file1 to file2. The perl script also reports (via STDERR) duplicate records, carriage returns and unprintable characters that it finds.

 

Extension is .txt to satisfy outlook.

 

John

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Paul Sichta via Tech-talk
Sent: Friday, March 20, 2020 2:44 PM
To: tech-talk at aps.anl.gov
Subject: [EXTERNAL] database "diff"

 

We're converting our (~200) databases from gdct to vdct.  After we drag around the records in vdct to visually arrange the linked records, we want to perform a final check to compare the original and the vdct records. We plan to write a text processing program/script to do this,  but...

 

Has anyone made a tool to compare the records and their fields in two database files?  Is there a utility (in the IOC) to dump a database report that we can compare (before/after)?  Does the old dbreport extension provide reports that list a record's field information that we can compare?

 

 

We're doing this because gdct doesn't run on Linux (right?).

 

Thanks,

-ps

 


References:
database "diff" Paul Sichta via Tech-talk
Re: [EXTERNAL] database "diff" Paul Sichta via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] database "diff" Paul Sichta via Tech-talk
Next: Re: database "diff" DiMonte, Nicholas via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [EXTERNAL] database "diff" Paul Sichta via Tech-talk
Next: Re: database "diff" DiMonte, Nicholas via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 20 Mar 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·