Results 1 to 2 of 2

Thread: Crontab @reboot commands not working

  1. #1
    Join Date
    Aug 2005
    Beans
    429

    Crontab @reboot commands not working

    So i was having issues with my screen going black every few minutes.

    I solved the issues with a ...

    Code:
    xset -dpms && xset s off
    So I wanted this command to run everytime I boot so I put it in crontab...

    Code:
    @reboot xset -dpms && xset s off
    However this command doesn't seem to be running on boot.

    I'm on xubuntu cloned laptop from another xubuntu installation on another laptop...

    Code:
    Linux dara-HP-Stream-Laptop-11-y0XX 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    I wish my computer would do what I want it to do - not what I tell it to do.

  2. #2
    Join Date
    May 2010
    Beans
    1,594

    Re: Crontab @reboot commands not working

    You need to specify the full path to the binary. You can get this with
    Code:
    which xset
    Then update the line with the absolute path.

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
  •