Use cron in ubuntu to remind you to rest

Source: Internet
Author: User


In ubuntu, cron is used to remind you to take a break. When windows was used, iegis is used to remind you to get up for an hour and change to ubuntu, so I want to use cron to directly remind myself to take a rest. The principle is very simple. I will lock the screen once every hour. DISPLAY =: 000 *****/usr/bin/gnome-screensaver-command -- lock note the preceding DISPLAY =: 0. If this variable is not available, gnome-screensaver-command will not take effect, an Error will be reported: Failed to get session bus: Error spawning command line 'offline-launch -- autolaunch = 903fc0c1b3535fe8f55930a05120822c -- binary-syntax -- close-stderr ': Child process exited with code
 

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.