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
#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
Quote
#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.
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 :)
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Help- converting file with pyton script grinleon 3 185 Sep-23-2020, 11:48 AM
Last Post: grinleon
  Python Complete novice: Want to run a vulnerability script bhanney23 1 122 Sep-18-2020, 09:27 AM
Last Post: Aspire2Inspire
  Python script to only keep waypoints within x km from track? Winfried 0 139 Sep-18-2020, 08:47 AM
Last Post: Winfried
  python script to Batch File biprabu 1 126 Sep-09-2020, 01:49 PM
Last Post: jefsummers
  svm script falahfakhri 3 289 Sep-03-2020, 06:17 AM
Last Post: bowlofred
  problem about slope in python script for bitcoin trading fisher_garry 1 361 Sep-02-2020, 01:39 PM
Last Post: fisher_garry
  Using a button to kill and restart a script duckredbeard 3 209 Sep-01-2020, 12:53 AM
Last Post: duckredbeard
  How to skip LinkedIn signup link using python script? Mangesh121 0 122 Aug-26-2020, 01:22 PM
Last Post: Mangesh121
  importing a list of numbers into python script barrypyth 8 381 Aug-22-2020, 09:10 PM
Last Post: barrypyth
  I need advise with developing a brute forcing script fatjuicypython 11 355 Aug-21-2020, 09:20 PM
Last Post: Marbelous

Forum Jump:


Users browsing this thread: 1 Guest(s)