Posts

Showing posts from April 13, 2019

How to make `trap` know if the EXIT is after successful program finish or because of premature as an error or...

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0; } 2 1 PROBLEM: I have a shell program that I have been writing but I can't find out how to make sure that trap is trapping for cleanup at the end or because of a error in some command, it cleans up either way. Here is the code: ################################### Successful exit then this cleanup ###########################################################3 successfulExit() { IFS=$IFS_OLD cd "$HOME" || { echo "cd $HOME failed"; exit 155; } rm -rf /tmp/svaka || { echo "Failed to remove the install directory!!!!!!!!"; exit 155; } } ############################################################################...

Why use ultrasound for medical imaging?

Image
1 $begingroup$ What advantage does ultrasound have over sound between 20-20000Hz that it is used in medical imaging over sound in that frequency range? energy acoustics frequency wavelength medical-physics share | cite | improve this question edited 9 hours ago Qmechanic ♦ 108k 12 200 1245 asked 9 hours ago Ubaid Hassan Ubaid Hassan 303 11 New contributor ...