Re: [Tutor] is this doable

2019-06-01 Thread Cameron Simpson
On 01Jun2019 10:02, nathan tech wrote: Now it has been mentioned, I do recall, on linux, briefly playing with psutil to retrieve memory values for a few tasks I keep running on my server. To that end, I think I now know roughly what to do. Something like this: import psutil import os path=o

Re: [Tutor] is this doable

2019-06-01 Thread nathan tech
Hello, Thank you for your responses. I am indeed developing for windows at the moment, with an eye casually glancing in the MAC direction as a possibility for the future that I shall think about. I'm sorry I couldn't explain better, but being only familiar with the concept in my head from on

Re: [Tutor] is this doable

2019-05-31 Thread Alan Gauld via Tutor
On 01/06/2019 00:13, Alan Gauld via Tutor wrote: > Is the language C/C++? If so you may know the OS API calls needed > and you could access those directly from Python using ctypes > That might make your job more familiar and easier. I meant to add a nod to Mark Hammond's win32 package too. It

Re: [Tutor] is this doable

2019-05-31 Thread Mats Wichmann
On 5/31/19 1:41 PM, nathan tech wrote: > Hi there, > > So for a future project of mine, I was wondering something. > > Is it possible, in python, to store a running task id in the registry? > > I might be using the complete wrong terms here, because I'm only used to > doing this with a specific

Re: [Tutor] is this doable

2019-05-31 Thread Alan Gauld via Tutor
On 31/05/2019 20:41, nathan tech wrote: > Is it possible, in python, to store a running task id in the registry? >From mention of the registry I assume you are running Windows? There is no registry on Unixlike systems. The answer in either case is yes since a task ID is just a number. However if

Re: [Tutor] is this doable

2019-05-31 Thread Cameron Simpson
On 31May2019 19:41, nathan tech wrote: Is it possible, in python, to store a running task id in the registry? I might be using the complete wrong terms here, because I'm only used to doing this with a specific language, but here's what I want to do: python mytest.py: if(registry.taskid==valid_

[Tutor] is this doable

2019-05-31 Thread nathan tech
Hi there, So for a future project of mine, I was wondering something. Is it possible, in python, to store a running task id in the registry? I might be using the complete wrong terms here, because I'm only used to doing this with a specific language, but here's what I want to do: python mytes