In this Bash tutorial we will show you how to use trap to exit a script cleanly. It can be used to clean up temporary files, ensure service availability after a script exits, ensure ports are secured and much more.
A text version of this tutorial can be found here:
https://www.putorius.net/using-trap-t...
0:00 Introduction to Bash Exit Trap
0:49 What is trap?
1:31 The wrong way to clean up on script exit
2:05 How to use trap on exit to clean up temporary files
2:53 Using traps to ensure service availability
3:31 Ensure ports are closed after script exit
4:02 Using a function in a trap call
4:20 Conclusion
In questa pagina del sito puoi guardare il video online Using Trap to Exit Bash Shell Scripts Cleanly - Linux Tutorial della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Putorius Linux Tutorials 06 febbraio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,874 volte e gli è piaciuto 120 spettatori. Buona visione!