at command is not executed

后端 未结 5 986
攒了一身酷
攒了一身酷 2021-01-18 04:45

I am trying to make the at bash command to run, but it is not working for me. I can add a job to the queue, but it is not run when the time is up. What am I doi

5条回答
  •  醉酒成梦
    2021-01-18 05:20

    Take a look at /var/at/jobs and see if your at jobs are listed there. (It may be a different directory based upon OS).

    By default, at isn't enabled on most systems. In order for at jobs to actually get executed, the atrun command must execute.

    This command is executed either through launchd or through the cron depending upon the system.

    The exact mechanisms are different from system to system, so you'll have to read all the various manpages on at, atrun, etc. to verify if at is really enabled on your system, and whether you have permissions to run at jobs. There's normally both an ant allow and an ant deny file on your system, so you need to check both. You must be both in the allowed file, and also not in the deny file.

    On top of that, you have to make sure that at is even enabled on your system (due to security concerns, it is usually disabled).

提交回复
热议问题