Running Cron job on Amazon Instance with BitnamiCron Job Not Running?Daily cron job not runningroot cron job not runningCron job not runningCron running job multiple timesRunning PHP Cron Job with Argumentssendmail with cron jobCron job daily not runningRunning a non-standard cron jobStop cron job constantly rebooting ec2 instance
Ideas for 3rd eye abilities
Why airport relocation isn't done gradually?
What does 'script /dev/null' do?
Is "plugging out" electronic devices an American expression?
Are cabin dividers used to "hide" the flex of the airplane?
Pristine Bit Checking
Does it makes sense to buy a new cycle to learn riding?
What causes the sudden spool-up sound from an F-16 when enabling afterburner?
Doomsday-clock for my fantasy planet
What is the offset in a seaplane's hull?
What is it called when one voice type sings a 'solo'?
Is there a name of the flying bionic bird?
Filling an area between two curves
Is there a way to make member function NOT callable from constructor?
Is every set a filtered colimit of finite sets?
Are white and non-white police officers equally likely to kill black suspects?
Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?
Is this food a bread or a loaf?
Calculate Levenshtein distance between two strings in Python
How to make payment on the internet without leaving a money trail?
Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Does bootstrapped regression allow for inference?
Running Cron job on Amazon Instance with Bitnami
Cron Job Not Running?Daily cron job not runningroot cron job not runningCron job not runningCron running job multiple timesRunning PHP Cron Job with Argumentssendmail with cron jobCron job daily not runningRunning a non-standard cron jobStop cron job constantly rebooting ec2 instance
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have a python file programmed that makes an automatic backup of my Amazon instance.
In this instance I have Mautic Bitnami installed.
I have tried to run the file from the next line, directly in the terminal and it works correctly.
python3 /home/bitnami/aws/snapshot_script.py --volume-ids = vol-07701xxxxxxxxxx --expiry-days = 7
(Create a backup that expires in 7 days.)
This is how the snapshot_script.py
file begins:
#!/usr/bin/env python3
The problem starts when I want to execute the line of code in a cron job, it does not work.
I have tried many things without getting results, for example:
- Change
python
to/usr/bin/python3
- Change
python
to//usr/bin/env python3
- Use
your bitnami -s
when starting the cron sudo crontab -l
to see if it is executed (yes it does)sudo adduser bitnami daemon
recommended on the webCopy the structure of the other crons:
/5 * * * * su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:segments:update" #mautic-segments-cron
the results of locate python
are:
/usr/bin/python3.5
/usr/bin/python3.5m
/usr/lib/python2.7
/usr/lib/python3.5
/etc/python3.5
/usr/local/lib/python3.5
/usr/include/python3.5m
/usr/share/
How should I proceed?
cron amazon-ec2 bitnami
New contributor
add a comment |
I have a python file programmed that makes an automatic backup of my Amazon instance.
In this instance I have Mautic Bitnami installed.
I have tried to run the file from the next line, directly in the terminal and it works correctly.
python3 /home/bitnami/aws/snapshot_script.py --volume-ids = vol-07701xxxxxxxxxx --expiry-days = 7
(Create a backup that expires in 7 days.)
This is how the snapshot_script.py
file begins:
#!/usr/bin/env python3
The problem starts when I want to execute the line of code in a cron job, it does not work.
I have tried many things without getting results, for example:
- Change
python
to/usr/bin/python3
- Change
python
to//usr/bin/env python3
- Use
your bitnami -s
when starting the cron sudo crontab -l
to see if it is executed (yes it does)sudo adduser bitnami daemon
recommended on the webCopy the structure of the other crons:
/5 * * * * su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:segments:update" #mautic-segments-cron
the results of locate python
are:
/usr/bin/python3.5
/usr/bin/python3.5m
/usr/lib/python2.7
/usr/lib/python3.5
/etc/python3.5
/usr/local/lib/python3.5
/usr/include/python3.5m
/usr/share/
How should I proceed?
cron amazon-ec2 bitnami
New contributor
Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your questions in the future... ;-)
– Fabby
2 days ago
If you want to run a cron job as a specific user, then rather than using root's crontab (sudo crontab ...
) and jumping through hoops withsu
and shells, I'd suggest using the system-wide crontab file/etc/crontab
(or a custom file in/etc/cron.d
) where you can specify the username directly as an additional field after the time spec.
– steeldriver
2 days ago
Hello, Thank you very much for your help. When you install the cronjob in "/etc/crontab" everything works correctly. I really appreciate your help.
– Franco
14 hours ago
add a comment |
I have a python file programmed that makes an automatic backup of my Amazon instance.
In this instance I have Mautic Bitnami installed.
I have tried to run the file from the next line, directly in the terminal and it works correctly.
python3 /home/bitnami/aws/snapshot_script.py --volume-ids = vol-07701xxxxxxxxxx --expiry-days = 7
(Create a backup that expires in 7 days.)
This is how the snapshot_script.py
file begins:
#!/usr/bin/env python3
The problem starts when I want to execute the line of code in a cron job, it does not work.
I have tried many things without getting results, for example:
- Change
python
to/usr/bin/python3
- Change
python
to//usr/bin/env python3
- Use
your bitnami -s
when starting the cron sudo crontab -l
to see if it is executed (yes it does)sudo adduser bitnami daemon
recommended on the webCopy the structure of the other crons:
/5 * * * * su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:segments:update" #mautic-segments-cron
the results of locate python
are:
/usr/bin/python3.5
/usr/bin/python3.5m
/usr/lib/python2.7
/usr/lib/python3.5
/etc/python3.5
/usr/local/lib/python3.5
/usr/include/python3.5m
/usr/share/
How should I proceed?
cron amazon-ec2 bitnami
New contributor
I have a python file programmed that makes an automatic backup of my Amazon instance.
In this instance I have Mautic Bitnami installed.
I have tried to run the file from the next line, directly in the terminal and it works correctly.
python3 /home/bitnami/aws/snapshot_script.py --volume-ids = vol-07701xxxxxxxxxx --expiry-days = 7
(Create a backup that expires in 7 days.)
This is how the snapshot_script.py
file begins:
#!/usr/bin/env python3
The problem starts when I want to execute the line of code in a cron job, it does not work.
I have tried many things without getting results, for example:
- Change
python
to/usr/bin/python3
- Change
python
to//usr/bin/env python3
- Use
your bitnami -s
when starting the cron sudo crontab -l
to see if it is executed (yes it does)sudo adduser bitnami daemon
recommended on the webCopy the structure of the other crons:
/5 * * * * su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php -q /opt/bitnami/apps/mautic/htdocs/app/console mautic:segments:update" #mautic-segments-cron
the results of locate python
are:
/usr/bin/python3.5
/usr/bin/python3.5m
/usr/lib/python2.7
/usr/lib/python3.5
/etc/python3.5
/usr/local/lib/python3.5
/usr/include/python3.5m
/usr/share/
How should I proceed?
cron amazon-ec2 bitnami
cron amazon-ec2 bitnami
New contributor
New contributor
edited 2 days ago
Fabby
27.1k1360161
27.1k1360161
New contributor
asked 2 days ago
FrancoFranco
1
1
New contributor
New contributor
Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your questions in the future... ;-)
– Fabby
2 days ago
If you want to run a cron job as a specific user, then rather than using root's crontab (sudo crontab ...
) and jumping through hoops withsu
and shells, I'd suggest using the system-wide crontab file/etc/crontab
(or a custom file in/etc/cron.d
) where you can specify the username directly as an additional field after the time spec.
– steeldriver
2 days ago
Hello, Thank you very much for your help. When you install the cronjob in "/etc/crontab" everything works correctly. I really appreciate your help.
– Franco
14 hours ago
add a comment |
Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your questions in the future... ;-)
– Fabby
2 days ago
If you want to run a cron job as a specific user, then rather than using root's crontab (sudo crontab ...
) and jumping through hoops withsu
and shells, I'd suggest using the system-wide crontab file/etc/crontab
(or a custom file in/etc/cron.d
) where you can specify the username directly as an additional field after the time spec.
– steeldriver
2 days ago
Hello, Thank you very much for your help. When you install the cronjob in "/etc/crontab" everything works correctly. I really appreciate your help.
– Franco
14 hours ago
Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your questions in the future... ;-)
– Fabby
2 days ago
Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your questions in the future... ;-)
– Fabby
2 days ago
If you want to run a cron job as a specific user, then rather than using root's crontab (
sudo crontab ...
) and jumping through hoops with su
and shells, I'd suggest using the system-wide crontab file /etc/crontab
(or a custom file in /etc/cron.d
) where you can specify the username directly as an additional field after the time spec.– steeldriver
2 days ago
If you want to run a cron job as a specific user, then rather than using root's crontab (
sudo crontab ...
) and jumping through hoops with su
and shells, I'd suggest using the system-wide crontab file /etc/crontab
(or a custom file in /etc/cron.d
) where you can specify the username directly as an additional field after the time spec.– steeldriver
2 days ago
Hello, Thank you very much for your help. When you install the cronjob in "/etc/crontab" everything works correctly. I really appreciate your help.
– Franco
14 hours ago
Hello, Thank you very much for your help. When you install the cronjob in "/etc/crontab" everything works correctly. I really appreciate your help.
– Franco
14 hours ago
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
);
);
Franco is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1131730%2frunning-cron-job-on-amazon-instance-with-bitnami%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
Franco is a new contributor. Be nice, and check out our Code of Conduct.
Franco is a new contributor. Be nice, and check out our Code of Conduct.
Franco is a new contributor. Be nice, and check out our Code of Conduct.
Franco is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1131730%2frunning-cron-job-on-amazon-instance-with-bitnami%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
Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your questions in the future... ;-)
– Fabby
2 days ago
If you want to run a cron job as a specific user, then rather than using root's crontab (
sudo crontab ...
) and jumping through hoops withsu
and shells, I'd suggest using the system-wide crontab file/etc/crontab
(or a custom file in/etc/cron.d
) where you can specify the username directly as an additional field after the time spec.– steeldriver
2 days ago
Hello, Thank you very much for your help. When you install the cronjob in "/etc/crontab" everything works correctly. I really appreciate your help.
– Franco
14 hours ago