🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: scipt ftp

#1709
From: iarenaza
Date: Wed, 31 Aug 2005 11:12
46 lines
2520 bytes
-----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.

- -- 
  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: <87aciy5piq.fsf@barad-dur.escomposlinux.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!news-pub.eteo.mondragon.edu!eteo.mondragon.edu!not-for-mail
References: <3niq8hF1o8odU1@individual.net> <Pine.LNX.4.63.0508301628070.27280@jvz.es> <3nlfqkF22njjU1@individual.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,217cb3188ddb1207
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!news-pub.eteo.mondragon.edu!eteo.mondragon.edu!not-for-mail
From: <iarenaza@eb2ebu.ampr.org> (Iñaki Arenaza)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: scipt ftp
Date: Wed, 31 Aug 2005 13:12:13 +0200
Organization: Mondragon Unibertsitatea - ETEO
Lines: 46
Distribution: es
Message-ID: <87aciy5piq.fsf@barad-dur.escomposlinux.org>
References: <3niq8hF1o8odU1@individual.net> <Pine.LNX.4.63.0508301628070.27280@jvz.es>
 <3nlfqkF22njjU1@individual.net>
NNTP-Posting-Host: 22.red-80-38-245.pooles.rima-tde.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: sid.eteo.mondragon.edu 1125486735 26342 80.38.245.22 (31 Aug 2005 11:12:15 GMT)
X-Complaints-To: newsmaster@eteo.mondragon.edu
NNTP-Posting-Date: Wed, 31 Aug 2005 11:12:15 +0000 (UTC)
User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)
Cancel-Lock: sha1:yeJCHXmSFXztCfuZ3By2AHNSSZA=