A
A
artshelom2020-03-23 21:46:31
bash
artshelom, 2020-03-23 21:46:31

How to run in a separate thread and then kill when the script ends?

I realized that you can run in another thread at the end of the line by simply specifying &, but how can I kill it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-03-23
@artshelom

he'll kill himself when it's over.
and if you need to kill while it is running, then you need to find its pid and kill it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question