Bonjour,
je cherche à resoudre un pb qui ma paru quand je lance mon scripts :
#!/bin/sh
list="bls101 bls201 bls102 bls202 blp101 blp201 blp102 blp202 blp103 blp203 blp104 blp204 blp105 blp205 blp106 blp206 bll101 bll201
bll301 bll401 bll501 blf101 blf201 blf301 blf401 blf501"
while true
do
clear
echo "veuilez choisir votre choix :
1) vM-irifier last restart server & cpu status
2) vM-irifier la defense
3) vM-irifier recovery
4) vM-irifier snap delay
5) vM-irifier check archilaog
6) vM-irifier semaphore
7) vM-irifier cross-config
8) vM-irifier last restart of SEP
9) vM-irifier
10) sortir"
echo "Votre choix : c"
read choice
case "$choice" in
1 ) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $firstcol=`/usr/sbin/psrinfo` && secondcol=`uptime | awk '{print "============>>"$3" " " "$4}'` && echo "$firstcol $sec
ondcol"
done
sleep 2
continue
;;
2 )
for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $HOME/.profile; /in/local/bin/sepman -l | grep Defence| awk '{print"=====================>>"$1 " "$2}'
done
sleep 2
continue
;;
3) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $host ls /in/local/var/recovery | wc -l
done
sleep 2
continue
;;
4) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $HOME/.profile > /dev/null 2>&1;get_snap | grep -vE "Active|the|snap|Delay" | awk '{if ($4>=25) print " "" "" "" "$4" "" "" "$7
}'
done
sleep 2
continue
;;
5) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $ ls -ltr /in/smp/smf/platform/archdb
done
sleep 2
continue
;;
6) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $ipcs -sam | grep 0x5000
done
sleep 2
continue
;;
7) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $HOME/.profile; /in/local/bin/sepman -l | grep -E "dzasdpa|dzaota|pfmddup
done
sleep 2
continue
;;
8) for host in $list
do
echo "33[1m"
echo $host" :"
echo "33[0m"
rsh $$HOME/.profile > /dev/null 2>&1;/in/local/bin/sepman -l | grep -v "I.N" | grep "nov27" | awk -F"|" '{print $3" "" "" "" "" "$
8}'
done
continue
;;
9) echo "Mauvais choix."
continue
;;
10) echo "bye, bye..."
esac
done
jai le message :
bls101 linus> ./test.sh
./test.sh: syntax error at line 119: `end of file' unexpected
merci en avance à vousConfiguration: Windows XP
Internet Explorer 7.0

