I want to be notified when the command operation is completed on linux!

Introduction

This article is the 13th day article of Linux Advent Calender 2020 Part 2. It also became an article on the 14th day of ICT Advent Calender 2020 in a hurry.

Have you ever been depressed when you suddenly did yum update on linux with 500 packages? I have. So let's solve this with Chrome's Secure Shell and a simple script (hterm-notify)! image.png That is what I want to do this time.

environment

This is my environment now.

CentOS Stream release 8[^1] [^ 1]: Recently migrated, Article Google Secure Shell Chrome browser

Secure Shell is very convenient because you can access the console with chrome tabs. Recommended.

I will try it for the time being

Google teacher left a great one, so I will use it as it is (hey) This page contains the contents of the shell script (hterm-notify) as it is, so copy it. Go to the console and create and edit a file called notify in/bin.

vim /bin/notify

Copy all the content you just copied.

How to use

notify title"Text"

It can be done with. So

sleep 5 && notify Hooray "The sleep's done!"

Then you can send the string The sleep's done! After 5 seconds. You did it!

at the end

This article is the 14th day article of ICT Advent Calender 2020. Yesterday was Fund. Did you write a baseball article before? Click here for article

Tomorrow is Sebiro. He has a lot of creative articles, so I'm looking forward to it. Click here for article

Have a nice Christmas, everyone!

Recommended Posts

I want to be notified when the command operation is completed on linux!
I want to be notified of the connection environment when the Raspberry Pi connects to the network
I want to use Linux on mac
I want to log file I / O on Linux
less command I want to definitely remember this [linux command]
I want to use OpenJDK 11 on Ubuntu Linux 18.04 LTS / 18.10
I want to automate ssh using the expect command!
I want to get started with the Linux kernel, what is the list head structure?
I want to use Linux commands at the command prompt! Use Linux commands at the command prompt instead of Git Bash
I want to initialize if the value is empty (python)
I want to automate ssh using the expect command! part2
I want to get the operation information of yahoo route
When you want to use python2.x on modern Gentoo Linux
Linux delete command when only the folder cannot be deleted
When you want to hit a UNIX command on Python
[Linux] I tried to summarize the command of resource confirmation system
The record I was addicted to when putting MeCab on Heroku
Automatically acquire the operation log in the terminal when logging in to Linux
I want to use shortcut translation like DeepL app on Linux
A note I was addicted to when making a beep on Linux
I want to run the Python GUI when starting Raspberry Pi
Settings to be made when starting up the linux server centos7
What to do if the inode is exhausted on EC2 Linux
I want to connect remotely to another computer, and the nautilus command
I want to pin Spyder to the taskbar
I want to get angry with my mom when my memory is tight
I want to output to the console coolly
I tried to summarize the umask command
I want to handle the rhyme part1
I want to handle the rhyme part3
[Linux] How to use the echo command
I made a kitchen timer to be displayed on the status bar!
How to use the Linux grep command
Notify Slack when the linux command finishes
I want to display the number of num_boost_rounds when early_stopping is applied using XGBoost callback (not achieved)
I want to display the progress bar
I want to identify the alert email. --Is that x a wildcard? ---
The --security option cannot be used with the dnf command on CentOS Linux
I want to leave an arbitrary command in the command history of Shell
I want to handle the rhyme part2
I want to develop Android apps on Android
I want to handle the rhyme part5
I want to handle the rhyme part4
I want to prevent the speaker connected to the Raspberry Pi (jessie) from bouncing when the OS is restarted (Python script)
Log when I was worried that I could not connect to Wi-Fi on Linux
I want to get the path of the directory where the running file is stored.
[Python] I want to know the variables in the function when an error occurs!
I want to use Python in the environment of pyenv + pipenv on Windows 10
I stumbled on the character code when converting CSV to JSON in Python
Linux: Netplan configuration guide to see when you want to fix the IP address
I want to realize something like AutoHotkey with AutoKey on Ubuntu (Kali Linux)
Correspondence memo when the direction key cannot be used on the python command line
[Linux] When "| (pipe)" cannot be hit on CentOS7
When you want to update the chrome driver.
I want to handle the rhyme part7 (BOW)
I want to be an OREMO with setParam!
Try to create a new command on linux
I want to do pyenv + pipenv on Windows
It's a Mac. What is the Linux command Linux?
Convert XLSX to CSV on the command line
I want to use the activation function Mish