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;








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 web


  • Copy 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?










share|improve this question









New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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












  • 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

















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 web


  • Copy 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?










share|improve this question









New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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












  • 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













0












0








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 web


  • Copy 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?










share|improve this question









New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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 web


  • Copy 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






share|improve this question









New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









Fabby

27.1k1360161




27.1k1360161






New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









FrancoFranco

1




1




New contributor




Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Franco is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 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












  • 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











  • 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
















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










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.









draft saved

draft discarded


















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.









draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?