How to Implement tomato work using shell

Source: Internet
Author: User
#! /Bin/sh # program description # scripts for implementing the tomato working method # tomato working method rules # Rule 1: A tomato lasts for 30 minutes, including 25 minutes of work and 5 minutes of rest. # Rule 2: the time of a tomato is inseparable. # In the tomato working method, the minimum unit of time is a tomato time. # One tomato time cannot be divided into: there is no such thing as half a tomato time or a quarter of an hour. # Rule 3: Stop your job after every four tomato times # Take a long rest for about 15 to 30 minutes # Rule 4: complete a task, remove one # usage explanation: the first tomato is 30 minutes. After the end, choose whether to continue # Enter y/y to continue the next tomato, and enter other commands to exit path = $ path :~ /Binexport pathyn = "Y" while ["$ YN" = "Y"-o "$ YN" = "Y"] Do echo "env display =: 0 Feh ~ /Pictures/eg_bulboff.gif "| at now + 25 minutes echo" env display =: 0 Feh ~ /Pictures/eg_bulbon.gif "| at now + 30 minutes sleep 30 m read-P" Please input (y/y) To move on: "yndoneatq | cut-S-F 1 | xargs atrmecho" Have a rest"
# In the following two lines of code, you must select a local image to display the image echo "env display =: 0 Feh ~ /Pictures/eg_bulboff.gif "| at now + 25 minutesecho" env display =: 0 Feh ~ /Pictures/eg_bulbon.gif "| at now + 30 minutes


How to Implement tomato work using shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.