shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

While


From: White_Tiger
Subject: While
Date: Tue, 30 Aug 2005 09:52:38 -0400

Pessoal. Estou com um problema numa parte de um script de firewall que estou 
escrevendo.
------------------------------------------------------------------------------------
PROXY="A"

while $PROXY!="S" || $PROXY!="N"
do
printf "Deseja abilitar um servidor proxy (squid). S/N: "
read PROXY
if $PROXY=="s"
then
PROXY="S"
elseif $PROXY=="n"
then
PROXY="N"
fi
if $PROXY!="S" || $PROXY!="N"
then
printf "Opção inválida!"
fi
done
------------------------------------------------------------------------------------
Mas ele apresenta erro na linha:

while $PROXY!="S" || $PROXY!="N"

Diz que não reconhece o comando: A!=S


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]