mirror of
https://github.com/luxfi/torus-ml.git
synced 2026-10-30 15:15:23 +00:00
16 lines
398 B
Bash
Executable File
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
|