How to find all the signature files

book

Article ID: 127830

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

There are certain situations in Harvest that might require that you find and delete all the Harvest "signature" files in your checkout directory.  But what is the best way to accomplish this?

Environment

Release:
Component: HCORE

Resolution

If you are searching on a Windows computer, remember that the "harvest.sig" files are marked "hidden" by default.  The following command will generate a list of all such files:

C:\>dir /b/s/ah harvest.sig 
C:\Temp\DOCS\harvest.sig 
C:\Temp\SampleRepository\DOCS\harvest.sig 
C:\Temp\SampleRepository\EXE\harvest.sig 
C:\Temp\SampleRepository\OBJ\harvest.sig 
C:\Temp\SampleRepository\SRC\harvest.sig 
C:\Temp\SampleRepository\SRC\DXY\harvest.sig 
C:\Temp\SampleRepository\SRC\HPGL\harvest.sig 
C:\Temp\SampleRepository\TESTDATA\harvest.sig 
C:\Temp\SampleRepository\TESTDATA\DXYTEST\harvest.sig 
C:\Temp\SampleRepository\TESTDATA\HPGLTEST\harvest.sig 
C:\Temp2\harvest.sig 
C:\VSDocs\Projects\HelloWorld\harvest.sig 
C:\VSDocs\Projects\HelloWorld\HelloWorldClient\harvest.sig 
C:\VSDocs\Projects\HelloWorld\HelloWorldClient\Properties\harvest.sig 
C:\VSDocs\Projects\HelloWorld\HelloWorldService\harvest.sig 
C:\VSDocs\Projects\HelloWorld\HelloWorldService\Properties\harvest.sig 
C:\VSDocs\WebSites\HostDevServer\harvest.sig 

In Windows, the "del" command can be used to recursively delete all the signature files.  Here is the command:

C:\>del /s/f/q/ah harvest.sig 
Deleted file - C:\Temp\DOCS\harvest.sig 
Deleted file - C:\Temp\SampleRepository\DOCS\harvest.sig 
Deleted file - C:\Temp\SampleRepository\EXE\harvest.sig 
Deleted file - C:\Temp\SampleRepository\OBJ\harvest.sig 
Deleted file - C:\Temp\SampleRepository\SRC\harvest.sig 
Deleted file - C:\Temp\SampleRepository\SRC\DXY\harvest.sig 
Deleted file - C:\Temp\SampleRepository\SRC\HPGL\harvest.sig 
Deleted file - C:\Temp\SampleRepository\TESTDATA\harvest.sig 
Deleted file - C:\Temp\SampleRepository\TESTDATA\DXYTEST\harvest.sig 
Deleted file - C:\Temp\SampleRepository\TESTDATA\HPGLTEST\harvest.sig 
Deleted file - C:\Temp2\harvest.sig 
Deleted file - C:\VSDocs\Projects\HelloWorld\harvest.sig 
Deleted file - C:\VSDocs\Projects\HelloWorld\HelloWorldClient\harvest.sig 
Deleted file - C:\VSDocs\Projects\HelloWorld\HelloWorldClient\Properties\harvest.sig 
Deleted file - C:\VSDocs\Projects\HelloWorld\HelloWorldService\harvest.sig 
Deleted file - C:\VSDocs\Projects\HelloWorld\HelloWorldService\Properties\harvest.sig 
Deleted file - C:\VSDocs\WebSites\HostDevServer\harvest.sig 

On the Linux and Unix operating systems, th “find” command will help to locate all the ".harvest.sig" files:

[[email protected] ~]$ find /home/cascm -name .harvest.sig 2>/dev/null
/home/cascm/temp/DOCS/.harvest.sig 
/home/cascm/temp/EXE/.harvest.sig 
/home/cascm/temp/OBJ/.harvest.sig 
/home/cascm/temp/SRC/.harvest.sig 
/home/cascm/temp/SRC/DXY/.harvest.sig 
/home/cascm/temp/SRC/HPGL/.harvest.sig 
/home/cascm/temp/TESTDATA/DXYTEST/.harvest.sig 
/home/cascm/temp/TESTDATA/HPGLTEST/.harvest.sig 
/home/cascm/temp/TESTDATA/.harvest.sig 

If I add the "-delete" option, it will recursively find and delete all the signature files:

[[email protected] ~]$ find /home/cascm -name .harvest.sig -delete 2>/dev/null

After the above command, I can execute find one more time to assure all the signature files are gone:

[[email protected] ~]$ find /home/cascm -name .harvest.sig 2>/dev/null