( ** Go back to PARENTPAGE ../Monitoring-Changes-in-UNIX-Directories.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

The ASPL script monitordir.aspl monitors a directory on the UNIX filesystem

Use the script monitordir.aspl to monitor UNIX directories

ASPL 1> printblock MONITORING DIRECTORY /tmp/aaaa1 7 TIMES WITH DELAY OF 4 SECONDS
MONITORING DIRECTORY /tmp/aaaa1 7 TIMES WITH DELAY OF 4 SECONDS

ASPL 2> mydir = ggdir(dir,/tmp/aaaa1)
glob the directory /tmp/aaaa1 and assign it to set variable mydir

ASPL 3> sleep 2
sleep 2 seconds

ASPL 4> ?7,4 mydir
interrogate mydir in a loop iteration of seven times with a delay of four seconds between each iteration

ASPL 5> @ mydir
print the differential group variable mydir

ASPL 6> intermittentarc 1
set intermittence on archives to 1

ASPL 7> printblock PLAY INTERMITTENT CHANGES IN DIRECTORY /tmp/aaaa1
PLAY INTERMITTENT CHANGES IN DIRECTORY /tmp/aaaa1

ASPL 8> playchanges mydir
playchanges on mydir showing the intermittent changes between the temporal instances, also print the rate of change in the differential group variable mydir

ASPL 9> printblock SHOW SIMILARITY BETWEEN INTERMITTENT CHANGES
SHOW SIMILARITY BETWEEN INTERMITTENT CHANGES

ASPL 10> playsim sim`fflz mydir
playsim on mydir, this is the same as playsim mydir and will also show rate of changes in the dissimilarity

ASPL 11> printblock PLAY INTERMITTENTLY THE UNION WHERE CHANGES ARE DETECTED
PLAY INTERMITTENTLY THE UNION WHERE CHANGES ARE DETECTED

ASPL 12> playop ,gD,`ks~ mydir
playop on the pure symmetric difference where changes occured in mydir

ASPL 13> printblock PLAY INTERMITTENTLY THE UNION WHERE CHANGES ARE DETECTED
PLAY INTERMITTENTLY THE UNION WHERE CHANGES ARE DETECTED

ASPL 14> playop ,gU`ks~ mydir
playop on labinated group union where changes occured in mydir

ASPL 15> printblock SHOW THE UNION OF ALL INSTANCES AT ONCE
SHOW THE UNION OF ALL INSTANCES AT ONCE

ASPL 16> ,gU @mydir
playop on labinated group union in mydir

ASPL 17> playop ,gD mydir
playop on labinated group symmetric difference in mydir as this will show in general what subdirectories and files have been deleted or created (regardless of the attributes state)

ASPL 18> ,g@ mydir
print the differential group operation on the differential group variable mydir

ASPL 19> ,gD @mydir
print the labinated symmetric difference on all instances saved in the differential group variable mydir

ASPL 20> gD @mydir
print the symmetric difference on all instances saved in the differential group variable mydir

ASPL 21> ,gD`ks~ mydir@1 mydir
print the labinated symmetric difference on 1st instance and last instance saved in the differential group variable mydir tick with predicate for where changes occured in ks vector

ASPL 22> ,gD`ks~ @mydir
print the labinated symmetric difference in all instances saved in the differential group variable mydir tick with predicate for where changes occured in ks vector

ASPL 23> printblock SHOW CHANGES IN THE DIFFERENTIAL GROUP VARIABLE mydir
SHOW CHANGES IN THE DIFFERENTIAL GROUP VARIABLE mydir

ASPL 24> ,f@`ks~ mydir
print the elements differential group operation on the differential group variable mydir where changes occured

ASPL 25> ,d@`ks~ mydir
print the subgroups differential group operation on the differential group variable mydir where changes occured

ASPL 26> ,g@`ks~ mydir
print the differential group operation on the differential group variable mydir where changes occured

ASPL 27> save DIR1234