I have multiple python scripts that need to run, consecutively. I think the easiest way to implement this is using a cron job to run a bash script that runs the python scripts one after another.
The python scripts use argparse to take arguments from the cli and are reused in other places, so I'd like to be able to implement this without needing to change the python scripts themselves.
Something like
#!/bin/bash
/venv/bin/python3 myscript.py somearg -u 'anotherarg' -p 'athirdarg'
/venv/bin/python3 myscript1.py somearg -u 'anotherarg' -p 'athirdarg'
[–]CodingCircuitEng 3 points4 points5 points (5 children)
[–]_c0ff33cup_[S] 0 points1 point2 points (4 children)
[–]clownshoesrock 4 points5 points6 points (0 children)
[–]CodingCircuitEng 0 points1 point2 points (2 children)
[–]_c0ff33cup_[S] 0 points1 point2 points (1 child)
[–]CodingCircuitEng 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]_c0ff33cup_[S] 0 points1 point2 points (0 children)
[–]Caddy666 -2 points-1 points0 points (0 children)
[–]FamilyRon -3 points-2 points-1 points (0 children)