Joel J.J. Heber
New Member
Here goes , I created a FIFO layer program that crunches the database and our data general minicomputer pretty good. The weighed I-O goes to about 25%.
I would like to create a little script in Unix to monitor usage:
Something as such:
test = 'mpsar 1 3' | grep -d " " -f 16 ; export test
blah blah
Anyhow I get the weighed IO into the test variable, if the variable is higher than say 30% the program will terminate to the man menu with a message.
Should I just do a series of Unix statements in prorgess or should I run a script in unix....
I am just not sure on how to import the variable.
hmmmmmmmm *scratches head*
I am a newbie so any help is much appreciated.
I would like to create a little script in Unix to monitor usage:
Something as such:
test = 'mpsar 1 3' | grep -d " " -f 16 ; export test
blah blah
Anyhow I get the weighed IO into the test variable, if the variable is higher than say 30% the program will terminate to the man menu with a message.
Should I just do a series of Unix statements in prorgess or should I run a script in unix....
I am just not sure on how to import the variable.
hmmmmmmmm *scratches head*
I am a newbie so any help is much appreciated.