Enviado em 26/04/2008 - 16:01h
Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de HostsFiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7"34#Fiz algumas alterações, aqui está funcionando agora...
#!/bin/bash
clear
echo "
Transmissao de arquivos
1-Maquina
2-Login
3-Senha
4-Arquivos a serem transmitidos
Informe os dados acima..."
while true
do
tput cup 2 32
read maq
if fgrep $maq /etc/hosts &> /dev/null
then
break
else
tput cup 21 25
echo -r "Maquina nao definida no arquivo de Hosts{TTEXTO}7"34#{TTEXTO}7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"
7 da beep
read #So esperar ate teclar <enter>
tput cup 21 25
echo ""
continue
fi
done
tput cup 3 32
read acesso
tput cup 4 32
stty -echo
read senha
stty echo
arquivos=" "
while true
do
tput cup 5 32
read arquivo
if [ ! "$arquivo" ];then
tput cup 17 16
echo -e "Finaliza entrada de arquivos (s/n) \c"
read sair
if [ "$sair" = s ];then
break
else
tput cup 17 16
echo ""
continue
fi
fi
if ls $arquivo > /dev/null 2>&1;then
tput cup 21 01
arquivos=$(echo ${arquivo})
tput bold
echo $arquivos
tput sgr0
else
tput cup 17 16
echo "arquivo nao existente"
read
tput cup 17 16
echo ""
fi
tput cup 17 16
echo ""
done
tput cup 19 16
tput smso
echo "aguarde a transmissao..."
for trans in $arquivos
do
FTP=$(echo "ftp -ivn "$maq" << EOF
user "$acesso" "$senha"
bin
put "$trans"
bye
EOF")
eval "$FTP"
done
tput cup 23 16
echo "fim de transmissao..
tecle<enter>"