Debian系统中at/atd命令使用问题:无法找到对应包或路径
at/atd on Debian 8 Jessie Hey there! Let's get your task scheduling with at/atd working on your Debian 8 system. Based on your kernel info, you're running Debian 8 (Jessie), so here's the step-by-step fix:
Install the required package
Theatcommand andatddaemon are both included in theatpackage, which isn't installed by default on some Debian setups. Run these commands to install it:sudo apt-get update && sudo apt-get install atStart and enable the
atddaemon
After installation, you need to make sure theatdservice is running so scheduled tasks get executed. For Debian 8 (which uses systemd by default):sudo systemctl start atd sudo systemctl enable atdIf you're using the old SysV init system instead, use these commands:
sudo service atd start sudo update-rc.d atd defaultsVerify everything works
Check ifatis now available by running:which atYou should see output like
/usr/bin/at. You can also test scheduling a quick task to confirm, for example:echo "echo 'Test task ran!' >> ~/at_test.txt" | at now +1 minuteWait a minute, then check the
at_test.txtfile in your home directory to see if the task executed.
内容的提问来源于stack exchange,提问作者Jbertrand

