Running python scripts consecutively in Crontab
问题 I am attempting to run my compilation of scripts one after another every minute. Example: Assuming each script takes 2 seconds to finish: start script 1 at 1:00, script 2 at 1:02, script 3 at 1:04, etc... I assume it should look something like this */1 * * * * python script1.py && python script2.py && python script3.py 回答1: * * * * * python /path/to/script1.py ; python /path/to/script2.py ; python /path/to/script3.py Use && if you want to run the second script only if the first script is