×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

DCL: Counting number of user processes for a period of time

DCL: Counting number of user processes for a period of time

DCL: Counting number of user processes for a period of time

(OP)
Hi all,

i want to count the number of user-processes for a period of time. I need this to be able to get an idea how many concurrent users are active on the system during the week. The user-processes i'm interested in all start with CS.

Currently i'm looking into the following command:

CODE -->

> sho system /pr=cs* 
OpenVMS V7.3-2  on node xxxxxx   2-DEC-2014 09:05:57.59  Uptime  16 20:46:50
  Pid    Process Name    State  Pri      I/O       CPU       Page flts  Pages
0002A844 CS0AAAAAA       LEF      5     2114   0 00:00:01.73      1650    916  N
00024872 CS0BBBBBB       LEF      6     1500   0 00:00:01.12      1638    883  N
00029881 CS0CCCCCCCC     LEF      6     1551   0 00:00:01.25      1606    858  N
0002C48A CS1DDDDDD       LEF      6     1405   0 00:00:01.05      1603    786  N
0002BC8F CS1EEEEEEEE     LEF      6     1576   0 00:00:01.22      1605    809  N
0002A495 CS0FFFFFFFF     LEF      6     2219   0 00:00:02.48      1717    943  N 

I would like to create a logging of the CS processes every 15 minutes in a text-file.
Looping an command should not be a problem. I've done that before like this

CODE -->

$ LOOP:
$ SOME COMMAND
$! DO COMMAND
$!
$ WAIT 00:10
$GOTO LOOP 


RE: DCL: Counting number of user processes for a period of time

Hi,

Output the output of the show process to a file /out=name.txt or define sys$output sys$login:file.txt
The read the file looking for the process name extracting the name
open/read proc_list sys$login:file.txt
read proc_list proc_line
the proc_line symbol will give you the information then use f$extract lexical to partition the line
then open a local file for write to output the statistics

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close