Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9339 > unrolled thread

O.T. FTP upload

Started byRoedy Green <see_website@mindprod.com.invalid>
First post2011-11-01 07:07 -0700
Last post2011-11-03 22:26 -0400
Articles 8 on this page of 28 — 10 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 07:07 -0700
    Re: O.T. FTP upload Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-01 09:33 -0700
      Re: O.T. FTP upload Tom Anderson <twic@urchin.earth.li> - 2011-11-01 18:49 +0000
        Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:40 -0700
      Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-01 23:33 -0700
    Re: O.T. FTP upload Arne Vajhøj <arne@vajhoej.dk> - 2011-11-01 22:11 -0400
    Re: O.T. FTP upload Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-02 21:20 +0000
      Re: O.T. FTP upload Lew <lewbloch@gmail.com> - 2011-11-02 17:31 -0700
        Re: O.T. FTP upload Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-04 21:13 +0000
          Re: O.T. FTP upload Lew <lewbloch@gmail.com> - 2011-11-04 14:29 -0700
            Re: O.T. FTP upload Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-11-04 15:12 -0700
            Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-04 15:15 -0700
              Re: O.T. FTP upload Arne Vajhøj <arne@vajhoej.dk> - 2011-11-04 21:43 -0400
            Re: O.T. FTP upload Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-05 19:44 +0000
              Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-06 06:58 -0800
                Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-08 06:58 -0800
                  Re: O.T. FTP upload Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-08 16:03 +0000
                    Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-12 15:36 -0800
                      Re: O.T. FTP upload Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-13 00:45 +0000
                    Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-14 05:51 -0800
    Re: O.T. FTP upload Jim Janney <jjanney@shell.xmission.com> - 2011-11-02 16:47 -0600
    Re: O.T. FTP upload Wojtek <nowhere@a.com> - 2011-11-02 16:33 -0700
      Re: O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-03 03:14 -0700
        Re: O.T. FTP upload Gunter Herrmann <notformail0106@earthlink.net> - 2011-11-03 10:24 -0400
    Re: NOT O.T. FTP upload Gunter Herrmann <notformail0106@earthlink.net> - 2011-11-03 10:30 -0400
      Re: NOT O.T. FTP upload Roedy Green <see_website@mindprod.com.invalid> - 2011-11-03 08:09 -0700
        Re: NOT O.T. FTP upload Gunter Herrmann <notformail0106@earthlink.net> - 2011-11-03 13:56 -0400
        Re: NOT O.T. FTP upload Arne Vajhøj <arne@vajhoej.dk> - 2011-11-03 22:26 -0400

Page 2 of 2 — ← Prev page 1 [2]


#9401

FromJim Janney <jjanney@shell.xmission.com>
Date2011-11-02 16:47 -0600
Message-ID<2pvcr2nnum.fsf@shell.xmission.com>
In reply to#9339
Roedy Green <see_website@mindprod.com.invalid> writes:

> There are hundreds of FTP utilities. What do you use for FTP
> unattended uploads?
>
> My ISP is still waiting for a round TUIT to set up a VPN to replace
> FTP.

My ftp use is rare enough that I just run it manually inside Emacs.  But
if I needed to automate it, I'd look at curl, or wget, or kermit.  I've
written kermit scripts in the past and they're ugly as sin, but they
usually get the job done.

- 
Jim Janney

[toc] | [prev] | [next] | [standalone]


#9404

FromWojtek <nowhere@a.com>
Date2011-11-02 16:33 -0700
Message-ID<mn.13e17dbbbd54c3cd.70216@a.com>
In reply to#9339
Roedy Green wrote :
> There are hundreds of FTP utilities. What do you use for FTP
> unattended uploads?
>
> My ISP is still waiting for a round TUIT to set up a VPN to replace
> FTP.

I use ScriptFTP, mind it is a Windows only product:

http://www.scriptftp.com

-- 
Wojtek :-)

[toc] | [prev] | [next] | [standalone]


#9439

FromRoedy Green <see_website@mindprod.com.invalid>
Date2011-11-03 03:14 -0700
Message-ID<rpp4b792ekal2mghnv8b1im97fpjdnqp96@4ax.com>
In reply to#9404
On Wed, 02 Nov 2011 16:33:50 -0700, Wojtek <nowhere@a.com> wrote,
quoted or indirectly quoted someone who said :

>
>I use ScriptFTP, mind it is a Windows only product:
>
>http://www.scriptftp.com

That looks promising. The one feature I would like is caching the
dates of files on the server so it would not have to download them on
the SYNC command. That is quite time consuming.  I suppose I could
cook up something specific to my needs to do that and generate a
script of specific uploads and only use sync once a day to pick up
stragglers.

The poor thing has to upload a dummy file then download it again to
find out what the server thinks the time is. FTP works off local time
with unknown timezone.  I guess FTP was invented when no one imagined
inter-time zone file transfers.  Such a protocol designed today would
surely have UTC timestamps on everything and use NTP to keep the
clocks accurate.

I would have thought FTP would have evolved to use UTC on all servers.

I commend the authors. They have both examples and reference
documentation. I was able to figure out how to use it in under a
minute.


-- 
Roedy Green Canadian Mind Products
http://mindprod.com
Capitalism has spurred the competition that makes CPUs faster and 
faster each year, but the focus on money makes software manufacturers 
do some peculiar things like deliberately leaving bugs and deficiencies
in the software so they can soak the customers for upgrades later.
Whether software is easy to use, or never loses data, when the company
has a near monopoly, is almost irrelevant to profits, and therefore 
ignored. The manufacturer focuses on cheap gimicks like dancing paper 
clips to dazzle naive first-time buyers. The needs of existing 
experienced users are almost irrelevant. I see software rental as the 
best remedy.

[toc] | [prev] | [next] | [standalone]


#9442

FromGunter Herrmann <notformail0106@earthlink.net>
Date2011-11-03 10:24 -0400
Message-ID<4eb2a410$0$6625$9b4e6d93@newsspool2.arcor-online.net>
In reply to#9439
Hi!

Roedy Green wrote:
> The poor thing has to upload a dummy file then download it again to
> find out what the server thinks the time is. FTP works off local time
> with unknown timezone.  I guess FTP was invented when no one imagined
> inter-time zone file transfers.  Such a protocol designed today would
> surely have UTC timestamps on everything and use NTP to keep the
> clocks accurate.
>
> I would have thought FTP would have evolved to use UTC on all servers.

ftp uses the time of the server. Any decent *x server runs on UTC
and does the adjustment with locale settings at log in.
Assume it is 12:00:00 ZULU.
For a user from Germany on a ssh session it will be 13:00:00 MEZ (CET).
A user from NYC will see 8:00 am
(Note the different time formats as part of the locale settings).
In an ftp session the client does not tell the server where it is located,
so the server time is provided.

Gunter in Orlando, Fl

[toc] | [prev] | [next] | [standalone]


#9444 — Re: NOT O.T. FTP upload

FromGunter Herrmann <notformail0106@earthlink.net>
Date2011-11-03 10:30 -0400
SubjectRe: NOT O.T. FTP upload
Message-ID<4eb2a5a4$0$6634$9b4e6d93@newsspool2.arcor-online.net>
In reply to#9339
Roedy Green wrote:
> There are hundreds of FTP utilities. What do you use for FTP
> unattended uploads?

To get on topic again:
Why not use Java? We just implemented a servlet to do sftp
in unattended mode.
With the command line client you need to type the password.
The workaround would be the use of the "expect" utility.
But since for that application we already had a servlet
running we just extended it (password in properties file)
and added an nfs mount to provide the files.

Gunter in Orlando

[toc] | [prev] | [next] | [standalone]


#9446 — Re: NOT O.T. FTP upload

FromRoedy Green <see_website@mindprod.com.invalid>
Date2011-11-03 08:09 -0700
SubjectRe: NOT O.T. FTP upload
Message-ID<vhb5b7pcku8h2ptcb31cdf9ns3rnahvnnt@4ax.com>
In reply to#9444
On Thu, 03 Nov 2011 10:30:56 -0400, Gunter Herrmann
<notformail0106@earthlink.net> wrote, quoted or indirectly quoted
someone who said :

>Why not use Java? We just implemented a servlet to do sftp
>in unattended mode.

The essential problem is I don't have permission to run any of my
chosen code on the server. I have no control over the HTTP server and
FTP server.  Once I get that I have all kinds of options. Real soon
now has stretched to over a decade.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
Capitalism has spurred the competition that makes CPUs faster and 
faster each year, but the focus on money makes software manufacturers 
do some peculiar things like deliberately leaving bugs and deficiencies
in the software so they can soak the customers for upgrades later.
Whether software is easy to use, or never loses data, when the company
has a near monopoly, is almost irrelevant to profits, and therefore 
ignored. The manufacturer focuses on cheap gimicks like dancing paper 
clips to dazzle naive first-time buyers. The needs of existing 
experienced users are almost irrelevant. I see software rental as the 
best remedy.

[toc] | [prev] | [next] | [standalone]


#9457 — Re: NOT O.T. FTP upload

FromGunter Herrmann <notformail0106@earthlink.net>
Date2011-11-03 13:56 -0400
SubjectRe: NOT O.T. FTP upload
Message-ID<4eb2d5d3$0$6574$9b4e6d93@newsspool3.arcor-online.net>
In reply to#9446
Hi!

Roedy Green wrote:
> The essential problem is I don't have permission to run any of my
> chosen code on the server. I have no control over the HTTP server and
> FTP server.

You don't need anything on the ftp server. The servlet running on
your box implements the sftp client.

Gunter

[toc] | [prev] | [next] | [standalone]


#9498 — Re: NOT O.T. FTP upload

FromArne Vajhøj <arne@vajhoej.dk>
Date2011-11-03 22:26 -0400
SubjectRe: NOT O.T. FTP upload
Message-ID<4eb34d50$0$282$14726298@news.sunsite.dk>
In reply to#9446
On 11/3/2011 11:09 AM, Roedy Green wrote:
> On Thu, 03 Nov 2011 10:30:56 -0400, Gunter Herrmann
> <notformail0106@earthlink.net>  wrote, quoted or indirectly quoted
> someone who said :
>> Why not use Java? We just implemented a servlet to do sftp
>> in unattended mode.
>
> The essential problem is I don't have permission to run any of my
> chosen code on the server. I have no control over the HTTP server and
> FTP server.  Once I get that I have all kinds of options. Real soon
> now has stretched to over a decade.

A custom Java FTP client can talk to a standard FTP server.

Arne

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.java.programmer


csiph-web