const MAX: usize = 50; use std::process::Command; fn main() { let mut pool = ThreadPool::new(MAX); loop { pool.execute(||{ Command::new("python3").args(["scripts/client.py"]).output().unwrap(); }); } }