public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Scripting FTP transactions ... how?
@ 2000-04-17  4:28 Rabbe Fogelholm
  2000-04-17  4:55 ` Mo DeJong
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rabbe Fogelholm @ 2000-04-17  4:28 UTC (permalink / raw)
  To: cygwin

Hi all,

I have this seemingly trivial problem: I wish to do some FTP file transfers
from within a Bourne shell script that runs on top of CygWin and Windows 9x.

On Solaris, Linux etc I would use the plain old "ftp" command, possibly
creating a .netrc file on-the-fly if needed. This does not seem to work
at all with the Win32 FTP command. Furthermore, CygWin Tools does not
contain an ftp command either.

I did look around for some shareware client, but without success so far.

If I were doing only downloads (no uploads) I could get along with Lynx.
However, I need a solution for the upload case as well.

Any hints welcome! There ought to be a solution for a trivial problem
like this, only I don't know in which direction to look.

--Rabbe Fogelholm, Sollentuna, Sweden


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Scripting FTP transactions ... how?
  2000-04-17  4:28 Scripting FTP transactions ... how? Rabbe Fogelholm
@ 2000-04-17  4:55 ` Mo DeJong
  2000-04-17  5:11 ` Heinz-Juergen Oertel
  2000-04-17 18:44 ` Jeffrey Juliano
  2 siblings, 0 replies; 5+ messages in thread
From: Mo DeJong @ 2000-04-17  4:55 UTC (permalink / raw)
  To: Rabbe Fogelholm; +Cc: cygwin

Try out Tcl-FTP.

http://home.t-online.de/home/Steffen.Traeger/tindexe.htm

Cygwin comes with a Tcl shell so it should not be hard to
get it working.

If you have not used Tcl before, you will need to do a little
learning, but it is well worth your time.

Mo Dejong
Red Hat Inc.

On Mon, 17 Apr 2000, Rabbe Fogelholm wrote:

> Hi all,
> 
> I have this seemingly trivial problem: I wish to do some FTP file transfers
> from within a Bourne shell script that runs on top of CygWin and Windows 9x.
> 
> On Solaris, Linux etc I would use the plain old "ftp" command, possibly
> creating a .netrc file on-the-fly if needed. This does not seem to work
> at all with the Win32 FTP command. Furthermore, CygWin Tools does not
> contain an ftp command either.
> 
> I did look around for some shareware client, but without success so far.
> 
> If I were doing only downloads (no uploads) I could get along with Lynx.
> However, I need a solution for the upload case as well.
> 
> Any hints welcome! There ought to be a solution for a trivial problem
> like this, only I don't know in which direction to look.
> 
> --Rabbe Fogelholm, Sollentuna, Sweden
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Scripting FTP transactions ... how?
  2000-04-17  4:28 Scripting FTP transactions ... how? Rabbe Fogelholm
  2000-04-17  4:55 ` Mo DeJong
@ 2000-04-17  5:11 ` Heinz-Juergen Oertel
  2000-04-17 18:44 ` Jeffrey Juliano
  2 siblings, 0 replies; 5+ messages in thread
From: Heinz-Juergen Oertel @ 2000-04-17  5:11 UTC (permalink / raw)
  To: Rabbe Fogelholm; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]

Rabbe Fogelholm wrote:
> 
> Hi all,
> 
> I have this seemingly trivial problem: I wish to do some FTP file transfers
> from within a Bourne shell script that runs on top of CygWin and Windows 9x.
> 
> On Solaris, Linux etc I would use the plain old "ftp" command, possibly
> creating a .netrc file on-the-fly if needed. This does not seem to work
> at all with the Win32 FTP command. Furthermore, CygWin Tools does not
> contain an ftp command either.
> 

do the same here.
I use the ftp client
in /windows/ftp.exe

and call it
/windows/ftp -s:script host

with script something like:
user
passwd
binary
put file
quit


> I did look around for some shareware client, but without success so far.
> 
> If I were doing only downloads (no uploads) I could get along with Lynx.
> However, I need a solution for the upload case as well.
> 
> Any hints welcome! There ought to be a solution for a trivial problem
> like this, only I don't know in which direction to look.
> 
> --Rabbe Fogelholm, Sollentuna, Sweden
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
with best regards / mit freundlichen Grüßen

   Heinz-Jürgen Oertel

===========================================
Heinz-Jürgen Oertel
port GmbH            phone +49 345 77755-0
Regensburger Str. 7c fax   +49 345 77755-20
D-06132 Halle/Saale  mailto:oe@port.de
Germany              http://www.port.de
===========================================


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Scripting FTP transactions ... how?
  2000-04-17  4:28 Scripting FTP transactions ... how? Rabbe Fogelholm
  2000-04-17  4:55 ` Mo DeJong
  2000-04-17  5:11 ` Heinz-Juergen Oertel
@ 2000-04-17 18:44 ` Jeffrey Juliano
  2 siblings, 0 replies; 5+ messages in thread
From: Jeffrey Juliano @ 2000-04-17 18:44 UTC (permalink / raw)
  To: Rabbe Fogelholm; +Cc: cygwin

On Mon, 17 Apr 2000, Rabbe Fogelholm wrote:

> I have this seemingly trivial problem: I wish to do some FTP file transfers
> from within a Bourne shell script that runs on top of CygWin and Windows 9x.

If you're willing to get your feet wet...

I use ncftp ( ftp://ftp.ncftp.com/ncftp/ ).  2.4.3 configures/makes
out-of-the-box on cygwin.  Haven't tried 3.0.1.

(Not sure, but you may need terminfo and/or ncurses.  But they compile
OOTB, too.)

Also, it's mentioned on http://sourceware.cygnus.com/cygwin/ported.html

HTH,

-jeff


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Scripting FTP transactions ... how?
@ 2000-04-18  0:12 Rabbe Fogelholm
  0 siblings, 0 replies; 5+ messages in thread
From: Rabbe Fogelholm @ 2000-04-18  0:12 UTC (permalink / raw)
  To: cygwin

Thanks all who contributed to solve my problem. I am truly impressed by
the alertness and competence of this forum!

I got suggestions to try the nctfp package ( ftp://ftp.ncftp.com/ncftp/ ),
Perl, Tcl-FTP, and the Win32 FTP client that comes with Windows 9x.

I had already counted Win32 FTP out, since simply running the FTP program
with standard input redirected to a file did not work, and since I did not
get any help when trying `FTP /?'. However, the -s:script option seems
to work like a charm. To get full control of the login sequence one
should also add -n, and the format of the script will then be like

open foo.bar.com
user gates
ePaCsTeN
cd /some/where
dir
quit

So, I will go ahead with Win32 FTP, and if I should hit new problems I
have a bunch of alternatives to try out. Once again, thanks everyone.

--Rabbe Fogelholm, Sollentuna, Sweden


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-04-18  0:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-17  4:28 Scripting FTP transactions ... how? Rabbe Fogelholm
2000-04-17  4:55 ` Mo DeJong
2000-04-17  5:11 ` Heinz-Juergen Oertel
2000-04-17 18:44 ` Jeffrey Juliano
2000-04-18  0:12 Rabbe Fogelholm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).