[LINUX] I want to record the execution time and keep a log.

I want to record the execution time with a script that is executed on time with cron

{echo ===== \ date \ =====; Script;} >> Log file

Explanation below { ●●●; ▲▲▲; } Combine command output in parentheses and spaces, separated by semicolons

echo =====`date`===== The current time is displayed by enclosing it in "=". Example: ===== Wednesday, August 19, 2020 15:22:14 JST =====

>> Redirect to add output

Log output image

=====Wednesday, August 19, 2020 15:59:01 JST=====
(The output result of the script goes here)

Recommended Posts

I want to record the execution time and keep a log.
I want to make a music player and file music at the same time
I want to create a Dockerfile for the time being.
I want to separate the processing between test time and production environment
Python: I want to measure the processing time of a function neatly
I made a tool to estimate the execution time of cron (+ PyPI debut)
I want to grep the execution result of strace
The story of IPv6 address that I want to keep at a minimum
How to execute a schedule by specifying the Python time zone and execution frequency
I want to create a lunch database [EP1] Django study for the first time
I want to create a lunch database [EP1-4] Django study for the first time
I want to move selenium for the time being [for mac]
I tried to illustrate the time and time in C language
I wanted to worry about execution time and memory usage
I tried to display the time and today's weather w
I want to know the features of Python and pip
I want to map the EDINET code and securities number
I want to find the intersection of a Bezier curve and a straight line (Bezier Clipping method)
I want to create a system to prevent forgetting to tighten the key 1
[Python3] Define a decorator to measure the execution time of a function
Scraping and tabelog ~ I want to find a good restaurant! ~ (Work)
I want to create a pipfile and reflect it in docker
I want to connect remotely to another computer, and the nautilus command
For the time being, I want to convert files with ffmpeg !!
I want to get information from fstab at the ssh connection destination and execute a command
I want to pin Spyder to the taskbar
I want to output to the console coolly
I want to print in a comprehension
I want to handle the rhyme part1
I want to handle the rhyme part3
I want to build a Python environment
I want to create a histogram and overlay the normal distribution curve on it. matplotlib edition
I want to display the progress bar
I want to clear up the question of the "__init__" method and the "self" argument of a Python class.
I want to handle the rhyme part2
I want to handle the rhyme part5
I want to handle the rhyme part4
I want to extract the tag information (title and artist) of a music file (flac, wav).
I want to send a signal only from the sub thread to the main thread
What I did to keep track of the humidity and temperature of the archive
I want to be cursed by a pretty girl every time I sudo! !!
I want to sort a list in the order of other lists
I want to identify the alert email. --Is that x a wildcard? ---
I want to analyze the emotions of people who want to meet and tremble
I want to make a web application using React and Python flask
I want to receive the configuration file and check if the JSON file generated by jinja2 is a valid JSON
[Hi Py (Part 1)] I want to make something for the time being, so first set a goal.
I want to make matplotlib a dark theme
I want to easily create a Noise Model
I want to INSERT a DataFrame into MSSQL
Setting to output the log of cron execution
I want to create a window in Python
I want to make a game with Python
I want to handle the rhyme part7 (BOW)
I don't want to take a coding test
I want to manage systemd by time zone! !!
I want to create a plug-in type implementation
I want to easily find a delicious restaurant
I want to log file I / O on Linux
I want to customize the appearance of zabbix
I want to write to a file with Python