0

I'm working on setting up cronjobs using PHP script. I know how to set up single file as a crontab, for example - shell_exec('crontab testcron.txt');

Is it possible to set multiple files as a crontab, like -

shell_exec('crontab testcron1.txt testcron3.txt testcron2.txt'); shell_exec('crontab testcron1.txt,testcron2.txt,testcron3.txt');

Thanks.

1 Answer 1

2

no, you can only have one file per user

but you can add multiple cronjobs in one crontab file. One cronjob per 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.