Python Forum
crontab on RHEL7 not calling python script wrapped in shell script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
crontab on RHEL7 not calling python script wrapped in shell script
#1
Hi I have a Python3 script wrapped in a shell script (needs to be for the moment) which executes fine when running from command line, but doesn't execute from crontab.

I have tested touching a file within the wrapper and it is created, so the script is running, but the python call does nothing.

Shell script contains as follows, very basic:

python dvdsrefresh.py ${1}

No errors, no output.

"which python" resolves to: /opt/rh/rh-python36/root/bin/python
Reply
#2
You need to provide more details. When you say "wrapped in a shell" I expected the Python code to be embedded in a shell script, but you show a .py file. Please give enough detail to reproduce.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Py script to APP on MAC tester_V 3 504 Dec-05-2025, 08:12 PM
Last Post: tester_V
  C++ program embedding Python crashes when calling PyUnicode_AsUTF8 Alexandros 4 2,384 Sep-19-2025, 11:11 AM
Last Post: Alexandros
  Trying to install the edk2-rk3399 code but the script fails due some python bug mariozio 2 1,856 Aug-17-2025, 10:25 PM
Last Post: mariozio
  Crontab and python versions stsxbel 3 932 Jun-09-2025, 09:38 AM
Last Post: snippsat
  Running script from remote to server invisiblemind 4 1,765 Mar-28-2025, 07:57 AM
Last Post: buran
  Insert command line in script lif 4 2,169 Mar-24-2025, 10:30 PM
Last Post: lif
  modifying a script mackconsult 1 1,096 Mar-17-2025, 04:13 PM
Last Post: snippsat
  help with a script that adds docstrings and type hints to other scripts rickbunk 1 1,853 Feb-24-2025, 05:12 AM
Last Post: from1991
  Detect if another copy of a script is running from within the script gw1500se 4 2,036 Jan-31-2025, 11:30 PM
Last Post: Skaperen
  set -x shell equivalent of python, possible/available? ggpf900 1 1,148 Jan-25-2025, 08:01 PM
Last Post: Gribouillis

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.