atom-community / atom-community/atom-script

"Stop running process on rerun" doesn't work anymore

Open
#2,592 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

As the title says, the function to automatically stop the running process if you run it again istn't working anymore.

To solve this problem for now I run the following script to kill the previous processes.

`killallpythonscripts.py `

> \# import needed modules
> import os, time
> \# run while a python script is running
> while 1:
> \# kill process
> ••••os.system("TASKKILL /F /IM python3.9.exe")
> \# wait, so the script doesn't crash
> ••••time.sleep(10)

` `
(notice: remove the "•" into four spaces or one tabulator)

My System:
**Windows:** Windows 11
**Atom:** 1.58.0 x64
**Script:** 3.32.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.