Been exploring claude and spec-based coding, I think it turned out fairly successful. It's just a simple unix-style tool that gives you a single command to use in bash scripts to simplify mutex or semaphore locking of execution.
flock is indeed built-in: `flock -xn /tmp/mylock.lock -c "echo running locked command"` does mutex locking in bash. Your tool might offer better ergonomics or features beyond flock's capabilities?
I don’t know the exact threshold at which you should use a real programming language instead of a bash script. But this type of work definitely exceeds it.
While in general I'd agree, this isn't necessarily just for bash scripts. It could just wrap the execution of another program allowing higher-level logic to handle concurrency and the low-level program to do it's one-at-a-time job
Sometimes you have a cron job that takes longer than it should (but inconsistently so), and another cron job that clobbers what that cron job is doing.
sluongng|7 months ago
yjftsjthsd-h|7 months ago
Zacru|7 months ago
I would say one good reason is that
is a lot easier to use and remember thanethan_smith|7 months ago
teddyh|7 months ago
forrestthewoods|7 months ago
anitil|7 months ago
bigattichouse|7 months ago
asddfgg55|7 months ago
eddythompson80|7 months ago
unknown|7 months ago
[deleted]