Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: how can I automatically lock screen everyday at specific times?

  1. #11
    Join Date
    Aug 2010
    Location
    wonderful land of OZ
    Beans
    73
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: how can I automatically lock screen everyday at specific times?

    Code:
    TooFreppaT@TooFreppaT:~$ crontab -e
    no crontab for TooFreppaT - using an empty one
    
    Select an editor.  To change later, run 'select-editor'.
      1. /bin/ed
      2. /bin/nano        <---- easiest
      3. /usr/bin/vim.tiny
    
    Choose 1-3 [2]:
    I'm not sure if this is important. Should I select number 2 and how will I change this afterwards?

    Okay I have selected number 2 and noticed this
    Code:
    # Output of the crontab jobs (including errors) is sent through
    # email to the user the crontab file belongs to (unless redirected).
    Since I haven't been asked for a email, what will it do otherwise? and how can I set the email? Okay I have found out to put MAILTO="" at the top of my file.

    Now I am looking for a way to redirect the unsent email into a file on my Desktop.
    I am not sure
    what MAILTO=root will do and unsure about if MAILTO=Desktop would even work at all.
    Last edited by TooFreppaT; May 26th, 2013 at 07:42 PM.

  2. #12
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    3,439
    Distro
    Xubuntu 16.10 Yakkety Yak

    Re: how can I automatically lock screen everyday at specific times?

    The output send to the e-mail address is the standard output+standard error of the command. If you make sure the command doesn't produce any or if you redirect the output to a log file, no e-mail will be send. You can use normal shell redirects.

  3. #13
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,665
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: how can I automatically lock screen everyday at specific times?

    Quote Originally Posted by TooFreppaT View Post
    [CODE]how will I change this afterwards?
    You can run the menu that allows you to select the default command line editor by running:
    Code:
    select-editor
    Regards.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •