Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 crontab on RHEL7 not calling python script wrapped in shell script
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 ${1}

No errors, no output.

"which python" resolves to: /opt/rh/rh-python36/root/bin/python
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.
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Multimode imports fine as script but not after compiling into exe chesschaser 0 50 Yesterday, 01:28 PM
Last Post: chesschaser
  Execute DBCC CHECKDB from python script susja 1 63 Aug-12-2020, 02:09 AM
Last Post: susja
  Web Form to Python Script to Text File to zip file to web wfsteadman 1 173 Aug-09-2020, 02:12 PM
Last Post: snippsat
  Execute full script samuelbachorik 0 152 Aug-06-2020, 08:09 PM
Last Post: samuelbachorik
  How to run diskpart from python script obgocs 1 92 Aug-06-2020, 05:46 AM
Last Post: Gribouillis
  Learning Python with telnetlib. Script seems to stall John_Williamson 1 125 Jul-23-2020, 05:52 PM
Last Post: John_Williamson
  The script won't take voice input ShishirModi 2 105 Jul-21-2020, 05:56 AM
Last Post: ShishirModi
  run a health check script on cloud server through paramiko amritjsr 4 198 Jul-21-2020, 02:30 AM
Last Post: amritjsr
  How to create a Kibana Visualisation with python script? adzadz 0 92 Jul-20-2020, 06:41 AM
Last Post: adzadz
  Need help creating a simple script Nonameface 12 376 Jul-14-2020, 02:10 PM
Last Post: BitPythoner

Forum Jump:

Users browsing this thread: 1 Guest(s)