Skip to main content

All Questions

Tagged with
-2 votes
1 answer
60 views

Run python code in crontab: "File not found" error [closed]

If I run the python file directly there is no problem. However, when running in crontab, error "File not found" occurs. selenium.common.exceptions.InvalidArgumentException: Message: invalid ...
l22hs's user avatar
  • 15
0 votes
0 answers
23 views

Spotipy cronjob does not run [closed]

I wrote a quick script so that I can automate adding my discover weekly to another playlist so it can be saved import os import spotipy from spotipy.oauth2 import SpotifyOAuth from dotenv import ...
currentexplanation's user avatar
1 vote
1 answer
40 views

Python Not Recognized in Scripts Executed via Cron

Summary I'm obtaining an error when running a bash script via cron. The script errors out when it reaches the following command; keep in mind that the bash script swaps out ${END_DATE} with the date ...
P-Sides's user avatar
  • 79
1 vote
0 answers
19 views

If multiple Python processes write data into InfluxDB, only parts are written

I have multiple Python processes, running on a server (RPI5) by cron, which read data from web API's, and write it then into a common InfluxDB database - on the same bucket. However, some of the data ...
lambruscoAcido's user avatar
0 votes
0 answers
58 views

Tkinter GUI doesn't open from Crontab

I have a Raspberry Pi 4 Model B, and I try to start a very basic Tkinter GUI on reboot. #!/home/pi/miniforge3/envs/myenv/bin/python import tkinter as tk def tk_gui(): root = tk.Tk() root....
Aenaon's user avatar
  • 3,463
-2 votes
0 answers
32 views

Cronjob - Python - Errors

I am trying to cron a script I have written but I keep getting errors. My cron looks like SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # For details see man 4 crontabs # ...
pr0xibus's user avatar
-1 votes
0 answers
27 views

Connection Error while running cron scheduler

I have written a code to fetch APIs. It runs without any problems when I directly run it from shell using python codename.py configfiles.ini >> logs.txt #OR sh module.sh "run" >> ...
SSJ's user avatar
  • 1
0 votes
0 answers
39 views

problem with the cron and pdf of odoo 15 when producing the documents

`When the invoice document is generated manually the document comes out fine, but when it is generated automatically through cron from my subscription module, it comes out with the formats out of ...
SirDomini x's user avatar
0 votes
1 answer
18 views

cron job to trigger something on a remote webserver

I have a webserver with ssh access and the possibility to enter a cron job there. I have another second webserver, where I just can create web pages to do some work (via php) when they are called from ...
datafiddler's user avatar
  • 1,813
0 votes
0 answers
33 views

How to Make API Calls at Prescheduled Timestamps Based on a SQL Table in Python?

Context I have a table in an SQL database looking like this. The goal is to call an api endpoint with the Item id, at the scheduled time, to get the price of the item at that point (the prices are ...
Della's user avatar
  • 1,528
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
47 views

cron log shows the job is running but actually the job is failing

I have a cron job in aws ec2 instance defined as: 0 2 * * * /home/ec2-user/scripts/backup.sh 0 3 * * 0 /home/ec2-user/scripts/cleanup.sh 0 * * * * /home/ec2-user/scripts/health_check.sh I checked ...
Azima's user avatar
  • 4,033
0 votes
1 answer
29 views

start node.js script from python script in crontab

Ubuntu 22.04.2 LTS Python3.11 Node v22.2.0 I'm trying to run a node.js script from a Python script by running a Python script from crontab, but nothing happens exactly in the part where the node.js ...
DCS stream's user avatar
0 votes
1 answer
29 views

Python Selenium execute from cronjob linux and shell script

I have a shell script that executes a python script through a cronjob. If I run the shell script or python script it executes without any issues. It only has issues when I execute it from a cronjob. ...
Bigbear's user avatar
  • 503
0 votes
0 answers
25 views

Should I store start time, end time, and days as separate fields or use a CRON expression in my database?

I am developing a scheduling feature in my application where users can set specific time ranges and days for recurring tasks. For example, a user might configure a task to run every Thursday and ...
MathAng's user avatar
  • 382

15 30 50 per page
1
2 3 4 5
150