Timeline for How to `time` a command N times (and be able to use CTRL-C to stop it)
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 11, 2020 at 14:16 | history | edited | CommunityBot | Commonmark migration | |
| Mar 9, 2020 at 7:06 | comment | added | Alexander | You could add a signal handler to the python script and then launch it with || break. | |
| Mar 9, 2020 at 6:57 | answer | added | Stéphane Chazelas | timeline score: 1 | |
| Mar 9, 2020 at 0:53 | history | edited | nonopolarity | CC BY-SA 4.0 | added 46 characters in body |
| Mar 9, 2020 at 0:25 | history | edited | nonopolarity | CC BY-SA 4.0 | added 7 characters in body |
| Mar 9, 2020 at 0:22 | comment | added | nonopolarity | I am surprised it has to be the CTRL-Z trick... I just tried creating a try.sh with #!/bin/sh time for i in {1..10}; do python3 foo.py ; done and CTRL-C also doesn't work... doesn't a shell actually have something that is: when the shell script gets the CTRL-C, then stop it altogether? | |
| Mar 8, 2020 at 22:34 | answer | added | lainatnavi | timeline score: 1 | |
| Mar 8, 2020 at 22:21 | comment | added | lainatnavi | You can use Ctrl+Z. After that the shell quits the loop and you would have the same effect. | |
| Mar 8, 2020 at 20:52 | answer | added | tansy | timeline score: 1 | |
| Mar 8, 2020 at 15:58 | history | edited | nonopolarity | CC BY-SA 4.0 | added 10 characters in body |
| Mar 8, 2020 at 15:53 | history | asked | nonopolarity | CC BY-SA 4.0 |