forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

listing all the processes with vms.starlet.getjpiw

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS
View previous topic :: View next topic  
Author Message
dlaroche-ca



Joined: 03 Jul 2013
Posts: 32
Location: Montréal, Québec, Canada

PostPosted: Thu Dec 19, 2013 2:58 pm    Post subject: listing all the processes with vms.starlet.getjpiw Reply with quote

I'm trying to get a list of all the processes running on a server using the getjpiw system service. The documentation of the service says to use -1 as the pid number argument to get a list of all the processes, but what I see is that getjpiw always returns information of the same process.

Would anyone know how that can be done?

Thanks in advance.
Back to top
View user's profile Send private message Send e-mail
jescab



Joined: 28 Jan 2008
Posts: 252

PostPosted: Thu Dec 19, 2013 3:22 pm    Post subject: Reply with quote

Have you looked at the example available here:
http://www.vmspython.org/ProcessIOExample ?

You get one process at each call and then you loop through all.
Note that ctx is reused and might not be -1 after the first call...

Jan-Erik.
Back to top
View user's profile Send private message
dlaroche-ca



Joined: 03 Jul 2013
Posts: 32
Location: Montréal, Québec, Canada

PostPosted: Thu Dec 19, 2013 4:20 pm    Post subject: Reply with quote

Fantastic, thank you so much.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group