
Untitled
By: a guest on
Apr 24th, 2012 | syntax:
Bash | size: 0.47 KB | hits: 13 | expires: Never
#!/bin/bash
export LD_LIBRARY_PATH="$1";
trap 'kill "${pids[@]}"' EXIT;
for f in server client
do
if [ "${f}" == "client" ]; then
for i in 1
do
echo "Client: $i";
echo "Path: $1";
konsole --noclose --new-tab -e "$1/$f"
done
else
konsole --noclose --new-tab -e "$1/$f"
fi
done
wait
#konsole --noclose --new-tab -e "$1/server" &
#konsole --noclose --new-tab -e "$1/server" & pid=$!
#for ((i=1; i<7; ++i)); do "$1/client" & pid[i]=$!; done