Using Trap to Exit Bash Shell Scripts Cleanly - Linux Tutorial

Publicado em: 06 Fevereiro 2020
no canal de: Putorius Linux Tutorials
4,874
120

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


Nesta página do site você pode assistir ao vídeo on-line Using Trap to Exit Bash Shell Scripts Cleanly - Linux Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Putorius Linux Tutorials 06 Fevereiro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,874 vezes e gostou 120 espectadores. Boa visualização!