[PYTHON] Notice the completion of a time-consuming command

When you are doing a time-consuming process such as downloading or building a package I was working on other work, and when I noticed it was finished building. There are many times.

It's okay if each task has the same priority If the priorities are reversed without your knowledge, productivity will drop.

I came up with a way to let you know when the command is over!

let it say


% bundle install; say 'It's over'

I like it because it's cyber, but unfortunately it can't be used on linux.

Make a system sound


% bundle install; tpul bel

This will make a system sound.

If it is troublesome to connect commands every time you call a script in the terminal You can also put it in the script. I tried calling it with subprocess from python.


import subprocess

subprocess.call('tput bel', shell = True)

Recommended Posts

Notice the completion of a time-consuming command
Get UNIXTIME at the beginning of today with a command
The story of writing a program
How to output the output result of the Linux man command to a file
Measure the relevance strength of a crosstab
A quick overview of the Linux kernel
[python] [meta] Is the type of python a type?
Migemo version of the: find command,: mfind
A memo explaining the axis specification of axis
Get the filename of a directory (glob)
The story of blackjack A processing (python)
[Linux] Command to get a list of commands executed in the past
Allow Slack to notify you of the end of a time-consuming program process
How to pass the execution result of a shell command in a list in Python
How to calculate the volatility of a brand
Get the caller of a function in Python
Visualize the inner layer of a neural network
Make a copy of the list in Python
Find the number of days in a month
A note about the python version of python virtualenv
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
The story of making a lie news generator
The story of misreading the swap line of the top command
Calculate the probability of outliers on a boxplot
[Python] A rough understanding of the logging module
Output in the form of a python array
It's a Mac. What is the Linux command Linux?
The story of making a mel icon generator
[Linux command] A memorandum of frequently used commands
Create a command to get the work log
See here for the amount of free memory of the free command
The story of launching a Minecraft server from Discord
A story that reduces the effort of operation / maintenance
Gradually display the output of the command executed by subprocess.Popen
[Python] A program that counts the number of valleys
Get the variable name of the variable as a character string.
A memorandum about the warning of the pylint output result
Calculate volume from the two-dimensional structure of a compound
How to write a GUI using the maya command
The story of stopping the production service with the hostname command
[GoLang] Set a space at the beginning of the comment
A memo to visually understand the axis of pandas.Panel
Cut a part of the string using a Python slice
Open Chrome version of LINE from the command line [Linux]
Be careful when differentiating the eigenvectors of a matrix
Let's clear the ambiguity of the hyphen (-) of the su command now! !!
Take a peek at the processing of LightGBM Tuner
Make a BOT that shortens the URL of Discord
Take a screenshot of the LCD with Python-LEGO Mindstorms
Make a note of the list of basic Pandas usage
A python implementation of the Bayesian linear regression class
Python points from the perspective of a C programmer
# Function that returns the character code of a string
The story of making a music generation neural network
Visualize the characteristic vocabulary of a document with D3.js
Steps to calculate the likelihood of a normal distribution
[Django] Change the Default IP address of the runserver command
I followed the implementation of the du command (second half)
Generate that shape of the bottom of a PET bottle
I made a command to markdown the table clipboard
Zip 4 Gbyte problem is a story of the past