The following shows the GG-functions in scripts. To locate the GG-funtions loaded by the GG-Container you will type at the shell prompt: asplcmd ~gg To locate the scripts: asplcmd ~shared
(in script bay12-notify.sh [monitor water level between two bays and send notification when level is critical])(ref:waterleveltoday = ggbaylevel();)
(in script bay12.sh [monitor water level between two bays])(ref:waterleveltoday = ggbaylevel();)
(in script bay12mon.pl [monitor water level between two bays])(ref:x = ggbaylevel())
(in script bay13-notify.sh [monitor water between two bays and send notification when level is critical])(ref:waterleveltoday = ggbaylevel();)
(in script bay13.sh [monitor water level between two bays using loop])(ref:waterleveltoday = ggbaylevel();)
(in script define-functions-to-compare-groups.aspl [defining various functions to compare groups])(ref:a1 = ggdir(dir,/tmp/aa1,nmdir,*,nmfl,*,calchksum,1,calentropy,1))(ref:a2 = ggdir(dir,/tmp/aa2,nmdir,*,nmfl,*,calchksum,1,calentropy,1))
(in script dirchange-monitor-delta-alternate.sh [monitor changes in a directory by alternating and saving data])(ref:dirvar = ggdir(dir,$1);)
(in script dirchange-monitor-delta.sh [monitor changes in a directory - FOR PRODUCTION])(ref:dirvar = ggdir(dir,$1);)
(in script dirchange-monitor.aspl [monitor the changes in a directory])(ref:vardir = ggdir(dir,$1))
(in script dirchange-monitor.sh [monitor changes in a directory and show changes between last two instances])(ref:dirvar = ggdir(dir,$1);)
(in script dirchange-monitor1.sh [monitor changes in a directory])(ref:dirvar = ggdir(dir,$1);)
(in script dirchange-monitor2.sh [monitor changes in a directory and show changes between last two instances])(ref:dirvar = ggdir(dir,$1);)
(in script dirchange-notify.sh [monitor changes in a directory and send email notification if any change])(ref:dirchange = ggdir(dir,/tmp/aaa1);)
(in script dircompare.aspl [compare two directories])(ref:d1 = ggdir(grp1,$1,dir,$1))(ref:d2 = ggdir(grp1,$2,dir,$2))
(in script dircompare.pl [compares directories across host names])(ref:$s .= "$vname = ggdir(grp1,$host,dir,$dir)\n";)(ref:$s .= "$vname = ggdirR(grp1,$host,hostname,$host,dir,$dir)\n";)
(in script dirdiff.pl [Compare directories between host machines in a cloud])(ref:$s .= "$vname = ggdir(grp1,$host,dir,$dir)\n";)(ref:$s .= "$vname = ggdirR(grp1,$host,hostname,$host,dir,$dir)\n";)
(in script dispersed.aspl [display files by same name with different contents])(ref:d1 = ggnixdir(grp1,$1,dir,$1))(ref:d2 = ggnixdir(grp1,$2,dir,$2))
(in script envcompare.pl [compares the ENV across host names])(ref:$s .= "$host = ggenv(grp1,$host)\n";)(ref:$s .= "$host = ggenvR(grp1,$host,hostname,$host)\n";)
(in script ggtieoscillators-test.aspl [test script for oscillators tied to UNIX device])(ref:X = ggtieoscillatorS(points,300,frequency,3))(ref:X = ggtieoscillatorS(points,300,frequency,3,roundfrac,1))(ref:X = ggtieoscillatorS(points,300,frequency,3,roundfrac,0))(ref:X = ggtieoscillatorS(points,3000,frequency,3,roundfrac,2))
(in script ggtieoscillators.aspl [SIMULATING TWO GROUPS WITH ELEMENT ATTRIBUTES TIED TO TWO OSCILLATORS])(ref:X = ggtieoscillatorS(points,$1,frequency,$2,roundfrac,$3))
(in script ggtieoscillatorsareas.aspl [find intersections of tied oscillating functions along their summed areas])(ref:X12 = ggtieoscillatorsareaS(points,$1,frequency,$2,roundfrac,$3,aggregate,1))
(in script jarcompare.aspl [Compare two JAR archives])(ref:jar1 = ggjar(jarfile,$1,calchksum,1,calentropy,1))(ref:jar2 = ggjar(jarfile,$2,calchksum,1,calentropy,1))
(in script jarcompare.pl [compares two or many Jar files: jarcompare.pl file1 file2 ..])(ref:$s .= "jar$i = ggjar(jarfile,$ARGV[$i],calchksum,1,calentropy,1)\n";)
(in script jarcomparelong.aspl [compare two JAR archives with extended output])(ref:d1 = ggjar(jarfile,$1,calchksum,1,calentropy,1))(ref:d2 = ggjar(jarfile,$2,calchksum,1,calentropy,1))
(in script jarsimilarity.pl [compare similarity between JAR archives])(ref:$s .= "jar$i = ggjar(jarfile,$ARGV[$i],calchksum,1,calentropy,1)\n";)
(in script monitordir.aspl [monitor changes in a directory by using group operations])(ref:mydir = ggdir(dir,$1))
(in script mutant.aspl [Using the namedspace DNASEQ1 to show DNA alignment])(ref:ggAlignDnaSeq(v1,$1,v2,$2,fragsize,$3))
(in script oscillator.aspl [intersecting two oscillators, each one tied to a UNIX device])(ref:ggoscillator(grp1,fosc1))(ref:ggoscillator(grp1,fosc2))
(in script oscillators.aspl [intersecting two oscillating functions tied to a UNIX device])(ref:S12 = ggoscillators(fonames,fosc1 fosc2,cycles,$2,points,$1))
(in script pathcompare.aspl [Compare PATH on two remote hosts in a cloud environment])(ref:p1 = ggpathR(grp1,$1,hostname,$1,ENVNAME,PATH))(ref:p2 = ggpathR(grp1,$2,hostname,$2,ENVNAME,PATH))
(in script pathcompare.pl [compares the system PATH of many hosts])(ref:$s .= "$host = ggpath(grp1,$host $PATH)\n";)(ref:$s .= "$host = ggpathR(grp1,$host,hostname,$host $PATH)\n";)
(in script playchanges.aspl [showing the rate of changes in a sampled random group])(ref:x = ggbitsubgS(gstart,1,gcount,1,dcount,1,dmin,2,dmax,3,scount,2,smin,2,smax,3,sfcount,1,sfmin,2,sfmax,3,fcount,2,fmin,2,fmax,3,mix,1))
(in script playop_bitgroup.aspl [play various operators on a random bit group])(ref:x = ggbitsubgS(gstart,1,gcount,1,dcount,1,dmin,2,dmax,3,scount,2,smin,2,smax,3,sfcount,1,sfmin,2,sfmax,3,fcount,2,fmin,2,fmax,3,mix,1))
(in script playop_bitgroup2.aspl [play various operators on a random bit group])(ref:x = ggbitsubgS(gstart,1,gcount,1,dcount,1,dmin,2,dmax,3,scount,2,smin,2,smax,3,sfcount,1,sfmin,2,sfmax,3,fcount,2,fmin,2,fmax,3,mix,1))
(in script playsim.aspl [sampling a random group over time and showing its rate of dissimilarity])(ref:x = ggbitsubgS(gstart,1,gcount,1,dcount,1,dmin,2,dmax,3,scount,2,smin,2,smax,3,sfcount,1,sfmin,2,sfmax,3,fcount,2,fmin,2,fmax,3,mix,1))
(in script polyclouds.aspl [Create random polygons on three spheres.])(ref:S123_$1 = ggRPO3Sov(N,$1,glb1,S1,glb2,S2,glb3,S3,nmfl,S123_$1))
(in script procints.aspl [get UNIX system interrupts in a loop with delays])(ref:ints = ggsysinterrupts(grp1,LabelABC,delay,$2); ?$1,0 ints)
(in script procstat.aspl [get UNIX system stat in a loop with delays])(ref:stas = ggsysstat(grp1,LabelABC,delay,$2))
(in script progenv.aspl [Environment variables of a program started by a shell script])(ref:B = ggprogenv(grp1,L,program,$1,onlychanged,1))
(in script progenvcompare.aspl [compare the environment variables of two sourcing shell scripts])(ref:A = ggprogenv(grp1,L,program,$1,onlychanged,1))(ref:B = ggprogenv(grp1,L,program,$2,onlychanged,1))
(in script progenvshellscompare.aspl [compare environment variables of two shell scripts])(ref:S = ggshellsenv(grp1,L,shells,$1,onlychanged,1))
(in script progenvshellsmerged.aspl [merge the environment variables of two shell scripts and compare them])(ref:M1 = ggshellsenvmerged(grp1,L,shells,$1,everything,1,leftmost1st,1))(ref:M2 = ggshellsenvmerged(grp1,L,shells,$1,everything,1))
(in script randomdice.aspl [Simulate three players throwing dice on a craptable.])(ref:p1 = ggdice(player,player1,throws,$1,die1trials, 5 $2,die2trials, 3 $3))(ref:p2 = ggdice(player,player2,throws,$1,die1trials, 5 $2,die2trials, 3 $3))(ref:p3 = ggdice(player,player3,throws,$1,die1trials, 5 $2,die2trials, 3 $3))
(in script randomdicePlus.aspl [Simulate three players throwing dice on a craptable])(ref:p1 = ggdice(player,player1,throws,$1,die1trials, 5 $2,die2trials, 3 $3))(ref:p2 = ggdice(player,player2,throws,$1,die1trials, 5 $2,die2trials, 3 $3))(ref:p3 = ggdice(player,player3,throws,$1,die1trials, 5 $2,die2trials, 3 $3))
(in script reapenv.aspl [Reap a program started by a shell script])(ref:ggreapenv(grp1,LABEL,program,$1,onlychanged,1,reaptimeout,2,nohup,1))
(in script reapenvbypid.aspl [Reap environment by pid])(ref:ggreapenvbypid(grp1,LABEL,program,$1,onlychanged,1,reaptimeout,2,nohup,1))
(in script reapenvcompare.aspl [Reap environment variables of two programs for comparison])(ref:e1 = ggreapenv(grp1,L,program,$1,onlychanged,1,reaptimeout,3,nohup,1))(ref:e2 = ggreapenv(grp1,L,program,$2,onlychanged,1,reaptimeout,3,nohup,1))
(in script reapenvpidcompare.aspl [Reap the environment variables of two programs for pid groups comparison])(ref:e1 = ggreapenvbypid(program,$1,onlychanged,1))(ref:e2 = ggreapenvbypid(program,$2,onlychanged,1))
(in script run-functions-to-compare-groups.aspl [various functions to compare two groups])(ref:a1 = ggdir(dir,/tmp/aa1,nmdir,*,nmfl,*,calchksum,1,calentropy,1))(ref:a2 = ggdir(dir,/tmp/aa2,nmdir,*,nmfl,*,calchksum,1,calentropy,1))
(in script threespheresdraw.aspl [plot the intersections of three spheres])(ref:G123 = gg3Spheres(N,$1,glb1,G1,glb2,G2,glb3,G3,nmfl,$2))
(in script throwdice.aspl [Simulate three players throwing dice on a craptable.])(ref:p1 = ggthrowdice(player,player1,throws,$1,dieland1trials, 5 $2,dieland2trials, 3 $3))(ref:p2 = ggthrowdice(player,player2,throws,$1,dieland1trials, 5 $2,dieland2trials, 3 $3))(ref:p3 = ggthrowdice(player,player3,throws,$1,dieland1trials, 5 $2,dieland2trials, 3 $3))
(in script twospheres.aspl [display the intersection of two spheres])(ref:gg2Spheres(N,$1,glb1,G1,glb2,G2))
(in script twospheresdraw.aspl [plot the intersections of two spheres])(ref:gg2Spheres(N,$1,glb1,G1,glb2,G2,nmfl,$2))
(in script wasreaper.aspl [Reap WebSphere startNode.sh and stopNode.sh for comparison])(ref:w1 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startNode.sh,onlychanged,1))(ref:w2 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/stopNode.sh,onlychanged,1))
(in script wasreaper2.aspl [Reap WebSphere wsadmin.sh and startServer.sh for comparison])(ref:v1 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/wsadmin.sh -conntype NONE -lang jython -username bassem -password bassem,onlychanged,1))(ref:v2 = ggreapenvbypid(program,/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1,onlychanged,1))
(in script wavesbeat.pl [find the beat between two waves])(ref:$s .= "W12 = ggtieoscillatorsareavaryS(points,300,frequency1,$freq1,frequency2,$freq2,roundfrac,1,aggregate,1)\n";)
(in script wavesbeat2.pl [find the beats between two waves])(ref:$s .= "W12 = ggtieoscillatorsareavaryS(points,300,frequency1,$freq1,frequency2,$freq2,roundfrac,1,aggregate,1)\n";)
(in script wavesbeatfinder.pl [find the beats between two waves with selective options])(ref:$s .= "W12 = ggtieoscillatorsareavaryS(points,$points,frequency1,$freq1,frequency2,$freq2,roundfrac,$roundfrac,aggregate,1,foscil1,$foscil1,foscil2,$foscil2)\n";)