How to create a cron job using Bash automatically without the interactive editor?

Does crontab have an argument for creating cron jobs without using the editor (crontab -e). If so, What would be the code create a cronjob from a Bash script?

How do I check the exit code of a command executed by flock?

Greetings all. I'm setting up a cron job to execute a bash script, and I'm worried that the next one may start before the previous one ends. A little googling reveals that a popular way to...

How to perform a mysqldump without a password prompt?

I would like to know the command to perform a mysqldump of a database without the prompt for the password. REASON: I would like to run a cron job, which takes a mysqldump of the database once...

script error on linux ubuntu /bin/sh: curl: not found?

I'm trying to run this script from the cron job schedule on Ubuntu Linux 10.04.1 server but i get the following out put: Curl seems to be enabled on the serevr this is the extract fro the phpinfo...

Running a cron every 30 seconds

Ok so I have a cron that I need to run every 30 seconds. Here is what I have: */30 * * * * /bin/bash -l -c 'cd /srv/last_song/releases/20120308133159 && script/rails runner -e production...

PostgreSQL disable more output

I am running a script on my PostgreSQL server: psql db -f sql.sql from bash or in a cron script. It keeps trying to paginate the output with more or less. How do I disable result pagination in...

E-commerce website design

I'm working on a e-commerce website. This website shall be integrated with a payment- processor. I have the following orders table. orders(InnoDB) ----------------------- id int PRIMARY...

Running a cron job 3 times (1 pm, 2 pm and 3 pm for example)?

I am not sure how to run a cron job at 3 specific hours every day. I want to run it at 1pm, 2 pm and 3pm. Is it possible, using a single expression?

Create a regular expression for Cron statement

I need to write an regular expression that matches Cron time expressions, like these ones: 28 2 7 1 1 28 2 7 1 * 28 2 7 * * 28 2 * * * 28 * * * * * * * * *

Will crontab hour range a-b run after b too?

Say I have a crontab which runs every 20 minutes and I have a hour range which can vary so lets say a-b, which in one example could look like */20 5-23 * * * /usr/bin/cool_program My question...

trigger Java EE batch from cron

JavaEE 7 appservers support batch operations implementing JSR 352 (Glassfish and Wildfly do). What is a good way to start batch operations from Unix cron? exec wget/curl a rest servlet that...

Xdebug laravel artisan commands

I regularly use xdebug to debug applications, I've built a laravel application that takes an upload of a csv inserts the data to the database and the ids to a job queue. I've written an artisan...

How can I get the URL (with protocol and domain) in Django (without request)?

I want to send mails in a cron job. The mail should contain a link to my application. In cron job, I don't have a request object, and can't use request.build_absolute_uri(). AFAIK the site...

Cron job not auto runs inside a Docker container

I have a LAMP container with supervisor. I add a simple cron * * * * * root /bin/date >> /var/log/cron.log from my Dockerfile ADD ./crons/test /etc/cron.d/test RUN chmod 0777 /etc/cron.d/test I...

Laravel 5.2: The Process class relies on proc_open, which is not available on your PHP installation

I use cron job to do some CRUD operation using laravel Task Scheduling. On localhost and on my Share-Hosting server it worked fine for months until recently I keep getting this error when I run...

Authentication issue with cron job on Ubuntu 18.04

I have a clean install of Ubuntu 18.04 and I'm having trouble getting a cron job to execute a script. Crontab -l contains the following: # Edit this file to introduce tasks to be run by cron. # #...

ansible change permissions using file module idempotent

I run my ansible playbooks through a cron job every night as I add to them every now and then. I want my output of each to only say changed=(num) if there is actually a change, but a few specific...

spring batch with spring boot using RepositoryItemReader nativeQuery

Presently i am using Spring boot + Spring batch + Spring data jpa. i am using RepositoryItemReader. with normal Page<QuoteOfferFulfillment> findByStatus(String status, ...

logrotate doesn't rotate catalina.out

I am trying to use logrotate to rotate out tomcat's catalina.out automatically on a daily basis even though I can manually call logrotate and it works fine. I am using I have tried every solution...

How to make CronJob respect daylight saving time?

Let's say I and the partner company I'm dealing with live in a country that employs Daylight Saving Time. I have a CronJob in a kubernetes cluster that uploads files to the partner company daily...

Test Batch with Spring boot

I create a batch and everything work well I do some unittest and it's work well too I'm trying to do integration test my batch following spring-batch documentation but i don't understand my...

Run Cron as non root user

We use open-shift, and the docker container only could be run as non-root user. However, the cron failed start with error: seteuid: Operation not permitted I have already done the following...

Unexpected identifier in Nesk/Rialto (Puppeteer)

I'm running Puppeteer via Puphpeteer, in one of my Laravel 5.8.35 commands. It works perfectly when I run it via the console (e.g. php artisan CommandName). However, when this same command runs...

Cannot determine if job needs to be started: Too many missed start time (> 100). Set or decrease .spec.startingDeadlineSeconds or check clock skew

I've created and pushed a cron job to deployment, but when I see it running in OpenShift, I get the following error message: Cannot determine if job needs to be started: Too many missed start...

How to keep a Node JS server running on shared hosting

I was looking to test a node server in a shared hosting environment. I'm using an ssh terminal session to test. The server works fine, but of course you can't leave the terminal session without...

Running ansible on the first node

I am trying to configure a series of web servers. I have the following in my inventory file: web_servers: hosts: 1.2.3.4: 1.2.3.5: I want to make sure the very first host (1.2.3.4) has...

Coinbase Pro /profiles/transfer

I need to be able to transfer crypto from one use to another user of Coinbase automatically via a cron job. I have configured an API key in Coinbase Pro which includes transfer capabilities. ...

Unable to install magrittr

Got a new company laptop and tried to install tidyr or installr, but it always fails because of magrittr. If I want to install this package directly I'm getting the following error code: *...

heroku showing There's nothing here, yet even though app is deployed and worked properly

I have used heroku for 2 months now. Deployed one app, everything worked fine. I actually already finished app development 2 days ago. Everything worked fine also yesterday. Suddenly today I...

Act Not able to Use Docker API

I am trying to locally test github actions with the open-source Act utility. "Think globally, act locally" I have copied the git hub repository for which i want to check github action and it...