Yes, it is possible to create a script, for example "inservice.sh" that contains the following commands:
#======================== echo "r&d" > inservice.in echo 4 >> inservice.in echo 6 >> inservice.in echo k3h5dyys7k >> inservice.in echo $1 >> inservice.in echo x >> inservice.in
nohup promon /progress/database/dbname < inservice.in > inservice.out
tail -28 inservice.out #========================
Then, you will need to allow executing of that script, for example with the following command:
chmod 755 inservice.sh
Once this is done, it is possible to run that script with a desired user number (that you would like to check) in the argument, for example:
./inservice.sh 24
This will provide Promon output for that user number, for example:
======== usrnum: 24 wait: 0 wait1: 0 latchwaked: 0 usrwake: 0 wlatchid: 0 waitArea: 0 task: 408 schlk: 1 usrtyp: 6920 semid: 131074 semnum: 12 usrinuse: 1 usrtodie: 0 resyncing: 0 txblk: 0 txelk: 0 latches: 0 wusrnum: 0 lockinit: 1 block: 0
DBContext: inservice: 0 resyncing: 0
OpenEdge Monitor Session End. ======== |