[kwlug-disc] Sleep until command is finished
Khalid Baheyeldin
kb at 2bits.com
Thu Jan 6 13:33:17 EST 2022
Since you are waiting for something to finish, and the shell is not really
doing
anything in parallel, then why make it async in the first place?
This will do what you want, without having to constantly check ...
echo "Checking ..."
sudo smartctl -t short /dev/sda
echo "Done ..."
sudo smartctl -l selftest /dev/sda | grep "# 1"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20220106/57c0ee53/attachment.htm>
More information about the kwlug-disc
mailing list