Echo result of a cron task under Ubuntu 18 Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Crontab Output problemHow to stop cron from mailing me?Can't make cron open a Java program with a GUIHow to WGET Cronjob to save a webpage periodicallyDaily cron task at certain hour?Ubuntu 16.04LTS Create Cron Job in cron.daily that will display the contents of auth.log to folder in every users home directory?Stopping an automated task with cronHow start cron taskProblem executing a cron job under Ubuntu 16Rsync and repository configuration
What are some likely causes to domain member PC losing contact to domain controller?
What is a more techy Technical Writer job title that isn't cutesy or confusing?
French equivalents of おしゃれは足元から (Every good outfit starts with the shoes)
Find general formula for the terms
How to achieve cat-like agility?
First paper to introduce the "principal-agent problem"
3D Masyu - A Die
What was the last profitable war?
"Destructive power" carried by a B-52?
Vertical ranges of Column Plots in 12
Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?
Does a random sequence of vectors span a Hilbert space?
Why do C and C++ allow the expression (int) + 4?
One-one communication
The test team as an enemy of development? And how can this be avoided?
latest version of QGIS fails to edit attribute table of GeoJSON file
Why can't fire hurt Daenerys but it did to Jon Snow in season 1?
Does the main washing effect of soap come from foam?
How to resize main filesystem
What did Turing mean when saying that "machines cannot give rise to surprises" is due to a fallacy?
Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?
What does 丫 mean? 丫是什么意思?
malloc in main() or malloc in another function: allocating memory for a struct and its members
In musical terms, what properties are varied by the human voice to produce different words / syllables?
Echo result of a cron task under Ubuntu 18
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Crontab Output problemHow to stop cron from mailing me?Can't make cron open a Java program with a GUIHow to WGET Cronjob to save a webpage periodicallyDaily cron task at certain hour?Ubuntu 16.04LTS Create Cron Job in cron.daily that will display the contents of auth.log to folder in every users home directory?Stopping an automated task with cronHow start cron taskProblem executing a cron job under Ubuntu 16Rsync and repository configuration
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
My cron is the following:
* * * * * /usr/bin/php /var/www/html/assets/app/php/cron/_test.php >> /var/www/html/log.txt
My _test.php file is the following:
#!/usr/bin/php -q
<?
echo 'Hello World';
?>
What it should be echoed in my log.txt ?
Actually the PHP code of the _test.php file is echoed but not the result of this code.
Is it normal ?
Thanks
cron
add a comment |
My cron is the following:
* * * * * /usr/bin/php /var/www/html/assets/app/php/cron/_test.php >> /var/www/html/log.txt
My _test.php file is the following:
#!/usr/bin/php -q
<?
echo 'Hello World';
?>
What it should be echoed in my log.txt ?
Actually the PHP code of the _test.php file is echoed but not the result of this code.
Is it normal ?
Thanks
cron
add a comment |
My cron is the following:
* * * * * /usr/bin/php /var/www/html/assets/app/php/cron/_test.php >> /var/www/html/log.txt
My _test.php file is the following:
#!/usr/bin/php -q
<?
echo 'Hello World';
?>
What it should be echoed in my log.txt ?
Actually the PHP code of the _test.php file is echoed but not the result of this code.
Is it normal ?
Thanks
cron
My cron is the following:
* * * * * /usr/bin/php /var/www/html/assets/app/php/cron/_test.php >> /var/www/html/log.txt
My _test.php file is the following:
#!/usr/bin/php -q
<?
echo 'Hello World';
?>
What it should be echoed in my log.txt ?
Actually the PHP code of the _test.php file is echoed but not the result of this code.
Is it normal ?
Thanks
cron
cron
asked 4 mins ago
F__MF__M
1012
1012
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1135905%2fecho-result-of-a-cron-task-under-ubuntu-18%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1135905%2fecho-result-of-a-cron-task-under-ubuntu-18%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown