🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #1632

Re: scipt ftp

#1632
From: XimoNW
Date: Fri, 09 Sep 2005 08:39
56 lines
2735 bytes
  (I�aki Arenaza) escribi�:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
>>>>>>"XimoNW" == XimoNW  <elrei69@yahoo.es> writes:
> 
> 
>     XimoNW> Mi script para probar es:
> 
>     XimoNW> 	open 192.168.1.31 user usuario pasword bye
> 
> A la hora de lanzar el ftp, hay que indicar la opcin '-n' para que no
> intente hacer el autologin y nos devuelva el prompt para que lea la
> orden 'user ...'. De lo contrario no funciona. Algo como:
> 
> $ ftp -n
> ftp> open ftp.escomposlinux.org
> Connected to mainake.escomposlinux.org.
> 220 rantanplan.linux.es FTP server ready.
> ftp> user anonymous password
> 331 Anonymous login ok, send your complete email address as your password.
> 230-
> ... (un monton de texto borrado)
> 230 Anonymous access granted, restrictions apply.
> Remote system type is UNIX.
> Using binary mode to transfer files.
> ftp> bye
> 221 Goodbye.
> 
> Asi que para lanzar el script, deberias hacer algo como:
> 
>     nohup ftp -n < ftp.ini
> 
> (si lo quieres lanzar con nohup, que esa es otra cuestion).
> 
> Saludos. I�aki.

Y sabes que opci�n debo poner para que me escriba la salida estandar en 
un fichero, pq si dentro del scipt ftp le digo por ejemplo ls>doc, me 
crea doc pero no escribe la salida de ls. Supongo que es cuesti�n de 
ponerle la opci�n correcta, pero leyebdo el man no lo tengo claro...


> 
> - -- 
>   Get PGP/GPG Keys at  http://www.escomposlinux.org/iarenaza/pgpkey.php
>   I use free software / Yo uso software libre
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
> 
> iD8DBQFDFZCLZXLnGT1HLgcRAh80AKCArYAKQsxePdlUZA1tQUzc7J+pigCfVeXT
> S1crgDsKftBqdMR/TGSkwno=
> =kqVR
> -----END PGP SIGNATURE-----
Technical Details
Message-ID: <3od023F4sqhhU1@individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <3niq8hF1o8odU1@individual.net> <Pine.LNX.4.63.0508301628070.27280@jvz.es> <3nlfqkF22njjU1@individual.net> <87aciy5piq.fsf@barad-dur.escomposlinux.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,217cb3188ddb1207
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: XimoNW <elrei69@yahoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: scipt ftp
Date: Fri, 09 Sep 2005 10:39:28 +0200
Lines: 56
Message-ID: <3od023F4sqhhU1@individual.net>
References: <3niq8hF1o8odU1@individual.net> <Pine.LNX.4.63.0508301628070.27280@jvz.es> <3nlfqkF22njjU1@individual.net> <87aciy5piq.fsf@barad-dur.escomposlinux.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net KclX7pQNr9+LkBw+tHjO2gOoxThWJ/20Qgqa/VvGb1JEQ3wBgL
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: es-es, es
In-Reply-To: <87aciy5piq.fsf@barad-dur.escomposlinux.org>