0

It might sound odd, but I need to run the AT command and schedule a command but I don't want to make a file and send it to AT with the -f option. Is it somehow possible to write the whole thing in one single line. Suppose I want to run the "gnome-terminal" at the time 13:10.

Thanks

1 Answer 1

4

at reads from standard input by default, i.e. if -f is not used. You can pass multiple lines in several ways, e.g. using here documents:

at << EOF
first line
second line
EOF

Or within a single line (specific to bash):

at <<< $'first line\nsecond line'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.