Timeline for How to make sure only one instance of a bash script runs?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 24, 2019 at 8:08 | comment | added | Tobias Kienzler | Looks interesting, thanks! And welcome to unix.stackexchange :) | |
| May 24, 2019 at 7:08 | comment | added | Scott - Слава Україні |
OK; please edit your answer to explain that. And, in the future, please don’t post multiple 30-line long blocks of code that look like they’re (almost) identical without saying and explaining how they’re different. And don’t say things like “you can hardcoded [sic] cksum inside your script”, and don’t continue to use variable names mysum and fsum, when you’re not talking about a checksum any more.
|
|
| May 24, 2019 at 6:35 | comment | added | arputra | not hardcoding checksum, its only create identity key of your script, when another instance will running, it will check other shell script process and cat the file first, if your identity key is on that file, so its mean your instance already running. | |
| May 24, 2019 at 0:14 | comment | added | Scott - Слава Україні | Please explain exactly how hardcoding the checksum is a good idea. | |
| May 24, 2019 at 0:10 | review | Late answers | |||
| May 24, 2019 at 2:31 | |||||
| May 24, 2019 at 0:06 | history | edited | arputra | CC BY-SA 4.0 |
deleted 19 characters in body
|
| May 23, 2019 at 23:55 | review | First posts | |||
| May 24, 2019 at 0:15 | |||||
| May 23, 2019 at 23:54 | history | answered | arputra | CC BY-SA 4.0 |