Files

16 lines
398 B
Bash
Executable File

#!/bin/bash
echo "Starting server"
python federated_server.py &
sleep 10 # Sleep for 3s to give the server enough time to start
for i in $(seq 0 1); do
echo "Starting client $i"
python federated_client.py &
done
# This will allow you to use CTRL+C to stop all background processes
trap 'trap - SIGTERM && kill -- -$$' SIGINT SIGTERM
# Wait for all background processes to complete
wait