trash
fedilink

FWIW, not having side-effects from being ran twice is called “idempotency

@ajr
creator
link
fedilink
2
edit-2
3M

deleted by creator

azron
link
fedilink
14M

Json or some other indicator of status. If statements and flat files you can easily delete to reset state. You have the right notion as to how to do it. Some sort of indicator that something has run. Possibly consider having an over arching concept of a run so you clearly status like run1.json or /run1/state.statefile

Ask specific questions about how to code something in sh, bash, zsh, etc

General bash discussion on lemmy.ml

Create Post From:
lemmy.ml

  • 0 users online
  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 5 users / 6 months
  • 19 subscribers
  • 10 Posts
  • 18 Comments
  • Modlog