Issue with crontab running a python script within a python script
bvdet, thanks for the help. I think I found the problem and it is with crontab and python. I have a python script called scanner.py which I start from the command line and it runs all the time.
Command: nohup python /home/dev/scanner.py password > /tmp/file.log 2>&1 &
Occassionally, the process stops. For that I have another...
User Profile
Collapse
-
How to run a python.py script from another python script
I am very new to Python I'm trying to run a python script from within another python script. I can run the script from a unix command line by typing: nohup python script.py password > /tmp/outfile.log 2>&1 & Or, I can put that command in a shell script and run it by typing: ./script.sh Both work great. However I don't know how to put either the command or the shell script in a python.py script and get it to run from there. ...
No activity results to display
Show More
Leave a comment: