cron

Mutt failing as cron job with 'Couldn't lock /sent'

我的梦境 提交于 2020-01-25 08:53:07
问题 I have a bash script which picks up files from /tmp and emails them to me. I run this script as root and it works perfectly but I am trying to get this automated with crontab. Added the job to crontab, again running as root, and now I get 'Couldn't lock /sent'. I managed to confirm it's using the file in /root by changing it's name in Muttrc and tried permission at 600 and 777. (Also getting an error Segmentation fault, hoping that will go away if I fix the above.) Anyone any ideas why Mutt

Cron Job fires twice in Serverless using AWS Lambda

大城市里の小女人 提交于 2020-01-24 12:33:53
问题 I am running a Cron Job which runs every Sunday at 10:00am UTC It pushes a Text Message to a Telegram Group Here's my full code Relevant parts below - serverless.yml service: lessons-of-hn-telegram-bot provider: name: aws runtime: nodejs8.10 environment: BOT_API_KEY: ${file(./env.json):BOT_API_KEY} CHANNEL_ID: ${file(./env.json):CHANNEL_ID} functions: cron: handler: handler.run description: Cron job that runs every Sunday at 10 am UTC events: - schedule: cron(0 10 ? * SUN *) handler.js const

Cron Job fires twice in Serverless using AWS Lambda

雨燕双飞 提交于 2020-01-24 12:33:13
问题 I am running a Cron Job which runs every Sunday at 10:00am UTC It pushes a Text Message to a Telegram Group Here's my full code Relevant parts below - serverless.yml service: lessons-of-hn-telegram-bot provider: name: aws runtime: nodejs8.10 environment: BOT_API_KEY: ${file(./env.json):BOT_API_KEY} CHANNEL_ID: ${file(./env.json):CHANNEL_ID} functions: cron: handler: handler.run description: Cron job that runs every Sunday at 10 am UTC events: - schedule: cron(0 10 ? * SUN *) handler.js const

Use Cron jobs with Appengine Endpoints API

╄→гoц情女王★ 提交于 2020-01-24 00:31:09
问题 I have developed a backend using Google App engine and Endpoints API. One of Api Method is a job that should run every X hours and do some logical stuff. my Question is how can I call this api method using Cron Job. I know the URL of the Api Method and i even succeed call her using the browser. but when I try call it with the cron job, the job was failed with 404 error code. here the cron.xml: <?xml version="1.0" encoding="UTF-8"?> <cronentries> <cron> <url>/_ah/api/meetingMatchingEndpoint/v1

Processing orders after minimum order met - Rails 3

与世无争的帅哥 提交于 2020-01-23 21:56:07
问题 My app has deals where orders are made once a minimum order amount is met. Currently I have setup orders that that orders are placed right after the order is submitted which is all working. Now I need to change the process so that orders are processed once the minimum order number for the deal is met. Should I use delayed_job for this or maybe a cron process? Here is the process I was thinking of following. Delaying Orders Until Orders minimum is met Find deals that are still active Then find

EB Worker cron.yaml - is not authorized to perform: dynamodb:UpdateItem

不打扰是莪最后的温柔 提交于 2020-01-23 13:35:11
问题 I have been trying to implement a cron job on my EB worker. My EB CLI on a deploy says "ERROR: Update environment operation is complete, but with errors." My yaml seems to parse just fine and in my EB events list I see the line "Successfully loaded 1 scheduled tasks from cron.yaml." version: 1 cron: - name: "cron" url: "/cron" schedule: "* * * * *" I look in the eb-activity.log and there is this issue: Activity execution failed, because: User: arn:aws:sts::550612933446:assumed-role

Schedule a Rscript crontab everyminute

◇◆丶佛笑我妖孽 提交于 2020-01-23 11:43:44
问题 For some reason my R script will not run with a crontab. I have it for every minute right now for testing, but will change it once it works. Any ideas? * * * * * Rscript “/Users/Home/Desktop/David Studios/Scraper/compiler.R” Also, this was working as just a normal command in Terminal. 回答1: I can see the dreaded smart quotes in your cron entry. This often happens when you copy-paste from word processors. Backspace over those abominations and re-type normal quotes. Change: * * * * * Rscript “

Schedule a Rscript crontab everyminute

白昼怎懂夜的黑 提交于 2020-01-23 11:39:22
问题 For some reason my R script will not run with a crontab. I have it for every minute right now for testing, but will change it once it works. Any ideas? * * * * * Rscript “/Users/Home/Desktop/David Studios/Scraper/compiler.R” Also, this was working as just a normal command in Terminal. 回答1: I can see the dreaded smart quotes in your cron entry. This often happens when you copy-paste from word processors. Backspace over those abominations and re-type normal quotes. Change: * * * * * Rscript “

Converting cron to launchd - MAILTO

爱⌒轻易说出口 提交于 2020-01-23 01:26:25
问题 Migrating from an old mac to a new one. Trying to migrate the user crontab I had on the old mac. Now I know I can probably get cron to run by creating /etc/crontab - but given that apple has deprecated it in favour of launchd - I thought I'd take a swing at migrating my crontab to launchd plist files. Always fun to learn something new :) The crontab isn't that hard - I tend to set up shell scripts that do the work and then just call them at scheduled times. I can call these fine from the

setup cron from morning to evening only [closed]

只谈情不闲聊 提交于 2020-01-22 19:53:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have to run daily cron. Cron must running time will be morning 11 AM to evening 7 PM. In this given time cron must run at every 15 mins daily. same thing after in night cron must run at every hour? Is this possible with linux cron scheduling type. Or i have to manage this from any scripting language. 回答1: */15