Shell Script to simulate logs and using TAIL

Опубликовано: 21 Апрель 2025
на канале: QaOps
870
8

In this video, I explain how to use shell script to simulate logs and using the command TAIL to observe those logs. We created a shell file and modified its permission to be able to execute that file. I also show you how to use the command watch to execute the same command periodically.

Subscribe: http://videos.qa-ops.com/subscribe

============TABLE OF CONTENTS===========
1:48 Creating shell script with hello world
4:02 Modifying the shell script to have execution permission
5:37 Using shell script to simulate a log file
8:45 Using a while loop on shell
9:54 Incrementing the index
11:41 Using sleep on shell
12:59 Redirecting the log(stdout) to a file
15:49 Using the watch command to periodically execute a command
17:16 Having a shell script without sleep
18:06 using tail to monitor the log file

============DOCUMENTATION===========
docs: http://videos.qa-ops.com/docs

============GITHUB===========
Github: https://repos.qa-ops.com/github
Repository: https://github.com/qa-ops/shell-script
Branch: main

============MENTIONED VIDEOS===========
Unix terminal on windows:    • Terminal unix | Configurando windows  
Setting up git repository:    • Repository setup | windows linux mac  
Git tree structure explained:    • Git explained | tree structure  
Basic git commands:    • Git cli explained | basic commands  
Managing Branches:    • Git CLI Explained | Managing Branches  
Conflicts, alias and gitignore:    • Git CLI Explained | gitignore alias c...  
Dealing with files and directories:    • Unix basics | Files and folders  
Creating alias and bash profile:    • Unix basics | alias and bash profile  
Creating Symbolic links:    • Unix basics | symbolic links  

============PLAYLISTS===========
Java RestAssured API: videos.qa-ops.com/java-restassured-automation


============SOCIAL MEDIAS===========
Twitter: https://social.qa-ops.com/twitter
LinkedIn: https://social.qa-ops.com/linkedin


====MUSIC BY====
Author: Simone Geravini
Licensed by: Zimo Music
   / @zimomusiclibrary