[plug] Bash "Processing" Script

Cameron Patrick cameron at patrick.wattle.id.au
Fri Jun 11 14:37:37 WST 2004


Jay Turner wrote:

| Is there a way that we can tell the 'while' that "it" is now false.

You could do something like:

touch Am_Copying_Stuff
(while test -f Am_Copying_Stuff; do
	whatever was in the while loop before;
done) &
dd if=big-file of=copy-of-big-file
rm Am_Copying_Stuff

This, to me, seems uglier than killing the while process.  Another
option would be using pipes, but that strikes me as over-engineering.

Cameron.



More information about the plug mailing list