view · edit · history · print

Ignore...

synergy.sh

  
SERVERIP=$1
if [ "x$1" = "x" ] 
then
  SERVERIP="192.168.1.101"
fi
echo "Server is ====> $SERVERIP "
/Applications/Utilities2/synergy/synergyc -f --name iMac_G4 ${SERVERIP}

synergyfind.sh

  
#./sweep.sh | grep -v '#' >/tmp/sweep.out
#for x in $( cat /tmp/sweep.out )
#do
#  nmap $x -p 24800 | grep "^24800.*open" && SYNSERV=$x
#done

#SYNSERV=$( nmap -sT -p 24800 192.168.1.* -T Aggressive | grep "^Interesting" | tr '(|)' '_' | awk 'BEGIN {FS="_"} {print $2}' )
#echo "Synergy server found ====> $SYNSERV "
#SYNSERV="192.168.1.100"
echo -n "Last decimal set of IP 192.168.1.0/24 : "
read SYNSERVEND
SYNSERV="192.168.1.$SYNSERVEND"
sh synergy.sh $SYNSERV

admin · attr · attach · edit · history · print
Page last modified on December 27, 2009, at 06:08 PM