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

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

Re: [shell-script] ftp automation script pc-> unix


From: Tiago F Bianchini
Subject: Re: [shell-script] ftp automation script pc-> unix
Date: Thu, 30 Aug 2001 10:13:04 -0300

eu faria diferente... da seguinte forma:

----- 8< ----- cut here ----- 8< -----
#!/bin/bash
usuario=nome do carinha
senha=senha da cara no ftp server
servidor=nome/endereço do servidor ftp

echo "conectando ao servido ftp"
ftp -n  $servidos<< EOF
user ${usuario} ${senha}
prompt

<sequencia de comandos ftp>

EOF
----- 8< ----- cut here ----- 8< -----


Em Quinta 30 Agosto 2001 14:42, you wrote:
> 8/30/2001 9:42:48 AM
>
> Olás...
>       e como passar o login e senha quando for o caso?
>
>
> []'s
>
>
> Bruno Olivieri
> address@hidden
> Aker Firewall Certificate
> Visual Technologies
> Tel:. 21.2518.40.86 Fax.: 21.2263.26.25
>
>
>
>
>
> Luis Fernando Kieça <address@hidden> escreveu em 8/30/2001 2:51:41
> AM:
>
> Jim,
>
>       You'll need create 2 "batch"'s files. The first one, you'll put the
> folling command:
>
>       @echo off
>       ftp ftp.hostname.com.br < ftpcommands.txt
>
>       The second file, you'll put all ftp commands to download the necessary
> file, as follow:
>
>       cd /pub
>       binary
>       lcd c:\download
>       get filename.exe
>
>       Maybe you'll need put more one line at the of file. This line will 
> contain
> the 'bye' command.
>
>       That's all.
>
>       I had do it once a long time ago. If I forgot something, please e-mail 
> us.
> Sorry for my bad english.
>
>       Best regards,
>
> Luis Fernando Kieça
>
> On Wednesday 29 August 2001 08:43 pm, you wrote:
> > Hi,
> > i need a ftp automation script that run on PC/DOS.
> > user
> > enters hostname and filename as arguments to the
> > script command. script transfers the file from the
> > remote host.
> > does anyone have such script?. If yes, can you share?.
> > if yes,
> > can you explainhow to install and run?.
> > Jim
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant messaging with Yahoo!
> > Messenger http://im.yahoo.com
> >
> > Sair da lista: address@hidden
> > Banco Dados:   http://www.egroups.com/group/shell-script
> >
> > Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
> > http://br.yahoo.com/info/utos.html
>
> Sair da lista: address@hidden
> Banco Dados:   http://www.egroups.com/group/shell-script
>
> Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
> http://br.yahoo.com/info/utos.html
>
>
> Sair da lista: address@hidden
> Banco Dados:   http://www.egroups.com/group/shell-script
>
> Seu uso do Yahoo! Grupos é sujeito às regras descritas em:
> http://br.yahoo.com/info/utos.html


reply via email to

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