#!/bin/bash FILE=GXP140x_t101.txt HOST=t101 PASSWD=`echo \`cat $FILE | grep 'P2 = '\` | tr -d ' ' | tr -d 'P2='` reboot2.sh $HOST $PASSWD