Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: Bash  |  size: 0.47 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. export LD_LIBRARY_PATH="$1";
  3. trap 'kill "${pids[@]}"' EXIT;
  4.  
  5. for f in server client
  6. do
  7.         if [ "${f}" == "client" ]; then
  8.                 for i in 1
  9.                 do
  10.                         echo "Client: $i";
  11.                         echo "Path: $1";
  12.                         konsole --noclose --new-tab -e "$1/$f"
  13.                 done
  14.         else
  15.                 konsole --noclose --new-tab -e "$1/$f"
  16.         fi
  17. done
  18.  
  19. wait
  20.  
  21.  
  22. #konsole --noclose --new-tab -e "$1/server" &
  23. #konsole --noclose --new-tab -e "$1/server" & pid=$!
  24. #for ((i=1; i<7; ++i)); do "$1/client" & pid[i]=$!; done