Dear Gyepi,
As it turns out, I have also implemented 'atomic'
operations on groups of files solely in perl. In this case,
each undoable action stores an undo coderef in a global
array after the 'do' action has completed. [...]
I'd love to learn more.
Of course, but I assume we are all
Dear Gyepi,
#!/bin/sh
type=$1
if [ $type eq do ]; then
groupadd bar
useradd foo ...
gpasswd -a foo bar
...
elif [ $type eq undo ]; then
userdel foo
groupdel bar
...
fi
Thanks for the example. This is certainly an interesting
technique. But
On Tue, Oct 05, 2004 at 08:48:28PM -0400, Kripa Sundar wrote:
Thanks for the example. This is certainly an interesting
technique. But I still fail to see why going from perl to sh(1)
makes it easier to undo something.
As it turns out, I have also implemented 'atomic' operations
on groups of