( ** Go back to PARENTPAGE ../Script-vardir-monitor.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/aaa1)
create a set variable vardir assigned ggdir() globing directory /tmp/aaa1

ASPL 2> ?10,5 vardir
interrogate vardir iterating 10 times with a delay of 5 seconds in between

ASPL 3> v sorted
print the symbol table showing all archived variables

ASPL 4> @sim vardir
print the similarity beween the archived variable vardir

ASPL 5> ,gU dir dir@1 dir@2 dir@3 dir@4 dir@5
ooops no such variables in the symbol table!

ASPL 6> ,gU vardir vardir@1 vardir@2 vardir@3 vardir@4 vardir@5
labinate and display the union between vardir and all its archives

ASPL 7> ,gU vardir vardir@5
labinate and display the union between last vardir and its initial group

ASPL 8> quit
sweet!