Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
听起来可能很奇怪,但我需要运行AT命令并安排一个命令,但我不想制作一个文件并使用-f选项将其发送到 AT。是否有可能将整个内容写在一行中。假设我想在 13:10 运行“gnome-terminal”。
谢谢
at默认情况下从标准输入读取,即如果-f不使用。您可以通过多种方式传递多行,例如使用此处的文档:
at
-f
at << EOF first line second line EOF
或者在一行中(特定于 bash):
at <<< $'first line\nsecond line'