Python Forum
subprocess Popen not working via crontab
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subprocess Popen not working via crontab
#5
(Mar-17-2017, 07:27 PM)nilamo Wrote: Thanks for coming back and letting us know what the problem was :)

I've had the same issue before (...more than once).  Cron doesn't have any environment values set, so you need to use absolute paths, and the user and user group are different, so if you do any file reading/writing, the files you touch need pretty promiscuous permissions.


The thing is i couldn't understand what " -11 " exit code represents , Yhg1s from python irc forum replied back that -11 is exit code for segmentation fault.

Then it became clear what the issue is. For oracle binaries to work ORALCE_HOME needs to be set , if it is not set i have seen segmentation fault issue.

Regards,
Nitin
Reply


Messages In This Thread
RE: subprocess Popen not working via crontab - by nitin23c - Mar-21-2017, 08:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Understanding subprocess.Popen Pedroski55 6 547 May-12-2024, 10:46 AM
Last Post: Pedroski55
Information subprocess.Popen() suddenly giving me grief? davecotter 3 826 Dec-13-2023, 10:49 PM
Last Post: davecotter
  Use subprocess.Popen and time.sleep chucky831 2 2,072 Aug-11-2022, 07:53 PM
Last Post: carecavoador
  Architecture question for website with python crontab script rockie12us 1 1,832 Aug-09-2021, 10:07 AM
Last Post: Larz60+
  Subprocess.Popen() not working when reading file path from csv file herwin 13 16,205 May-07-2021, 03:26 PM
Last Post: herwin
  Did subprocess.Popen() causes main routine to pause stdout? liudr 4 3,836 May-04-2021, 08:58 PM
Last Post: liudr
  disable subprocess.popen prompt echo paul18fr 1 2,153 Feb-04-2021, 02:50 AM
Last Post: Larz60+
  how to pass the interactive string to Popen subprocess maiya 1 2,008 Sep-18-2020, 09:36 PM
Last Post: Larz60+
  How to get program output from subprocess.Popen? glestwid 1 2,483 Aug-19-2020, 05:44 AM
Last Post: buran
  python os.popen is not working for wait method elenaflorence87 0 2,089 Jul-22-2020, 12:56 PM
Last Post: elenaflorence87

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020