1

Topic: The forced end of operation python a script

Good afternoon.
Is available launched python a script which hangs in storage, performing operation in a cycle.
As it is possible to stop it, from the code or from the console. I.e. it is necessary to complete from an exterior source this process of a script, on file name of the script.
All works on Windows.
I thank for the help.

2

Re: The forced end of operation python a script

loggik wrote:

Good afternoon.
Is available launched python a script which hangs in storage, performing operation in a cycle.
As it is possible to stop it, from the code or from the console. I.e. it is necessary to complete from an exterior source this process of a script, on file name of the script.
All works on Windows.
I thank for the help.

Up to a point triggered python-script technically from the point of view of OS differs nothing from any other process, it is necessary and to clarify enough how in Windows forcedly to complete any process.

3

Re: The forced end of operation python a script

the uncle wrote:

it is passed...
Up to a point triggered python-script technically from the point of view of OS differs nothing from any other process, it is necessary and to clarify enough how in Windows forcedly to complete any process.

The matter is that if there are two launched python a script, we will have two python process how to learn what of them to what initial script concerns. And it is necessary to cut down by name a script, in the manager of processes of this information is not present.
Probably I forgot to specify in the description that triggered scripts/processes can be a little.

4

Re: The forced end of operation python a script

loggik wrote:

in the manager of processes of this information is not present

The manager of processes (Task manager) by default not deduces all information.
Add for example column Command Line and look that there it is deduced.

5

Re: The forced end of operation python a script

At process start you write down the pid in a file with name certainly known to another process. Further you read a file,  process.

6

Re: The forced end of operation python a script

kill - 9 number of process

7

Re: The forced end of operation python a script

loggik wrote:

all Works on Windows.

kill - 9 number of process:-D

8

Re: The forced end of operation python a script

skyANA wrote:

it is passed...
The manager of processes (Task manager) by default not deduces all information.
Add for example column Command Line and look that there it is deduced.

Yes, at once did not think, from command line it is possible to read a script name.
Thanks for the help.

9

Re: The forced end of operation python a script

Hett wrote:

At process start you write down the pid in a file with name certainly known to another process. Further you read a file,  process.

Yes it is clear, but with storage did not want to communicate. By name will be information on process enough.