Run a command at a specific time

后端 未结 5 708
闹比i
闹比i 2021-01-31 04:36

I\'m trying to run a command at a specific time. I\'ve looked at the \"at\" command, but I don\'t know how to get it working...

Here\'s what I do:

at 184         


        
5条回答
  •  盖世英雄少女心
    2021-01-31 05:20

    You could try this:

    at 1843 <<_EOF_
    php /run/this/script.php
    _EOF_
    

    edit if what you want to do is run Firefox, try this:

    at 1843 <<_EOF_
    DISPLAY=:0.0 /usr/bin/firefox
    _EOF_
    

提交回复
热议问题