How do I see server responses from individual run() commands #2962
Unanswered
db1996
asked this question in
Help needed
Replies: 1 comment 1 reply
-
What about: $ct = run("crontab -l");
$ct .= $line;
run("echo $ct | crontab -") |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on this we made a task that creates all of our cron jobs for us. We have a txt file with a cron job on every line which it loops over.
This is our current task:
This seems to work without a problem in most of our projects however we're running into an issue in 1 of our projects where only 1 or 2 of the 4 cronjobs are actually deployed on the server. It's very inconsistent, sometimes it deploys all 4 cronjobs, but most of the time only 1 or 2 (without changing anything)
Is there any way to see if the
run("(crontab -l; echo \"".$line."\") | crontab -");
gives an error? to see if we're doing anything wrongBeta Was this translation helpful? Give feedback.
All reactions