Q
Q
QQ2016-01-23 02:08:59
Task Schedulers
QQ, 2016-01-23 02:08:59

How to split a long command on a new line?

Hello.
There are a lot of commands in the crown, how to make them from a new line?
1 * * * * root echo "Hello" && echo "World" && echo "My" && echo "Friends"
Would like this:
1 * * * * root
echo "Hello" &&
echo "World" &&
echo "My" &&
echo "Friends"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
QQ, 2016-01-23
@botaniQQQ

In general, this is impossible.
stackoverflow.com/questions/18661492/crontab-comma...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question