( ** Go back to PARENTPAGE ../Monitoring-Directories-on-Your-Filesystem.html)
( ** Go back to HOMESITE https://www.tcnd.com)
( ** Go back to SetSphere https://www.setsphere.com)

Calling ASPL commands to monitor a directory on a UNIX system

The following are the ASPL commands to monitor a directory in real time on the UNIX system. An iterative loop is triggered by iterrogating the set variable vardir.

ASPL 1> vardir = ggdir(dir,/tmp/aaaa1)
glob directory /tmp/aaaa1 and assign it to set variable vardir

ASPL 2> ks mtime chksum ppdd ffl
set ks-vector to mtime chksum ppdd ffl

ASPL 3> ?10,4 vardir
interrogate vardir looping 10 times with 4 seconds delay in between each iteration

ASPL 4> @ vardir
print the archive of variable vardir

ASPL 5> ,gD`ks~ vardir vardir@1
display the changes between final vardir and 1st iteration

ASPL 6> ,gD`ks~ vardir vardir@2
display the changes between final vardir and 2nd iteration

ASPL 7> ,gD`ks~ vardir vardir@3
display the changes between final vardir and 3rd iteration

ASPL 8> ,gD`ks~ vardir vardir@4
display the changes between final vardir and 4th iteration

ASPL 9> ,gD`ks~ vardir vardir@5
display the changes between final vardir and 5th iteration

ASPL 10> ,gD`ks~ vardir vardir@6
display the changes between final vardir and 6th iteration

ASPL 11> ,gD`ks~ vardir vardir@7
display the changes between final vardir and 7th iteration

ASPL 12> ,gD`ks~ vardir@1 vardir@2
display the changes between 1st and 2nd iterations

ASPL 13> ,gD`ks~ vardir@2 vardir@3
display the changes between 2nd and 3rd iterations

ASPL 14> ,gD`ks~ vardir@3 vardir@4
display the changes between 3rd and 4th iterations

ASPL 15> ,gD`ks~ vardir@4 vardir@5
display the changes between 4th and 5th iterations

ASPL 16> ,gD`ks~ vardir@5 vardir@6
display the changes between 5th and 6th iterations

ASPL 17> ,gD`ks~ vardir@6 vardir@7
display the changes between 6th and 7th iterations

ASPL 18> ,gD`ks~ vardir vardir@1 vardir@3 vardir@4 vardir@5 vardir@6 vardir@7
display the changes between all iterations

ASPL 19> ,gU`ks~ vardir vardir@1 vardir@3 vardir@4 vardir@5 vardir@6 vardir@7
display the unions of vardir and all iterations

ASPL 20> ,dD`ks~ vardir vardir@1 vardir@3 vardir@4 vardir@5 vardir@6 vardir@7
display the changes of subdirectories between all iterations

ASPL 21> ,fD`ks~ vardir vardir@1 vardir@3 vardir@4 vardir@5 vardir@6 vardir@7
display the changes of files between all iterations

ASPL 23> bye
sweet!