Re: FTP without username and password

2022-12-07 Thread Carlos Bermúdez
in Python! ;) It's a whole different protocol. TFTP is simplified to the point it will fit on embedded devices which don't need security (the assumption being that one has the embedded device physically present, FTP assumes distributed networks). https://wiki.python.org/moin/t

Re: FTP without username and password

2022-12-07 Thread Barry
 > On 7 Dec 2022, at 16:49, ^Bart wrote: > >  >> It's a whole different protocol. TFTP is simplified to the point it >> will fit on embedded devices which don't need security (the assumption >> being that one has the embedded device physically present

Re: FTP without username and password

2022-12-07 Thread Grant Edwards
On 2022-12-07, Dennis Lee Bieber wrote: > It's a whole different protocol. TFTP is simplified to the point it > will fit on embedded devices which don't need security (the > assumption being that one has the embedded device physically > present, FTP assumes distributed netw

Re: FTP without username and password

2022-12-07 Thread ^Bart
It's a whole different protocol. TFTP is simplified to the point it will fit on embedded devices which don't need security (the assumption being that one has the embedded device physically present, FTP assumes distributed networks). https://wiki.python.org/moin/tftp I never

Re: FTP without username and password

2022-12-07 Thread ^Bart
The Python code you showed was implementing an FTP server. That's a completely different protocol from TFTP. There are TFTP implementations for Pythong. This one works well: https://github.com/msoulier/tftpy I didn't know the difference of FTP and TFTP so... I thought TFTP was

Re: FTP without username and password

2022-12-06 Thread Dennis Lee Bieber
le different protocol. TFTP is simplified to the point it will fit on embedded devices which don't need security (the assumption being that one has the embedded device physically present, FTP assumes distributed networks). https://wiki.python.org/moin/tftp -- Wulfraed

Re: FTP without username and password

2022-12-06 Thread Grant Edwards
On 2022-12-06, ^Bart wrote: >> In general, "anonymous FTP" is done technically with a username and >> password. Can you look at how the device tries to connect, and then >> make that username (probably "anonymous") and that password (could be >> anythin

Re: FTP without username and password

2022-12-06 Thread ^Bart
In general, "anonymous FTP" is done technically with a username and password. Can you look at how the device tries to connect, and then make that username (probably "anonymous") and that password (could be anything, traditionally was an email address) valid for fetching? T

Re: FTP without username and password

2022-12-06 Thread ^Bart
The code above already does make the directory available without a username and password. Do you mean you need the directory to be *writable* without a username and password? If so try the '-w' option. Thanks for your reply, I solved by TFTP SolarWind free tool, like what I wrote in another pos

Re: FTP without username and password

2022-12-06 Thread Chris Angelico
On Wed, 7 Dec 2022 at 02:51, ^Bart wrote: > > Hi Guys, > > usually I use this code on my Debian Bullseye: > > # python3 -m pyftpdlib -i 192.168.0.71 -p 21 -d /home/my_user/ftp > > It works, it's simply easy and perfect but... a device in my lan needs a > ftp fold

Re: FTP without username and password

2022-12-06 Thread Jon Ribbens via Python-list
On 2022-12-06, ^Bart wrote: > Hi Guys, > > usually I use this code on my Debian Bullseye: > > # python3 -m pyftpdlib -i 192.168.0.71 -p 21 -d /home/my_user/ftp > > It works, it's simply easy and perfect but... a device in my lan needs a > ftp folder without username

FTP without username and password

2022-12-06 Thread ^Bart
Hi Guys, usually I use this code on my Debian Bullseye: # python3 -m pyftpdlib -i 192.168.0.71 -p 21 -d /home/my_user/ftp It works, it's simply easy and perfect but... a device in my lan needs a ftp folder without username and password! I tried to search on internet how to set the

[New Release] PyFTPD - an FTP server with GUI and CLI versions

2016-11-01 Thread Demosthenes Koptsis
Hello, i have just released the brand new FTP server based on pyftpdlib, named PyFTPD. You can run it from CLI with PyFTPD-cli.py or if you like GUIs run the PyFTPD.py It is written on PyQT4 and Python 2.7.12 More at https://github.com/demosthenesk/PyFTPD Regards, Dim -- https

Re: How to add ftp put function in PyQT network ftp demo

2014-07-02 Thread 不坏阿峰
在 2014年7月1日星期二UTC+7下午5时27分59秒,不坏阿峰写道: > I want to modify the pyqt network ftp demo to include an upload function, but > I am failing. Could someone can show me how to do this? I have tried to add > this code, but it does not work. > > [Orignal > demo]https://github.com

How to add ftp put function in PyQT network ftp demo

2014-07-01 Thread 不坏阿峰
I want to modify the pyqt network ftp demo to include an upload function, but I am failing. Could someone can show me how to do this? I have tried to add this code, but it does not work. [Orignal demo]https://github.com/Werkov/PyQt4/blob/master/examples/network/ftp/ftp.py at First, i add

Re: Python FTP timeout value not effective

2013-09-02 Thread Terry Reedy
On 9/2/2013 1:43 PM, John Nagle wrote: I'm reading files from an FTP server at the U.S. Securities and Exchange Commission. This code has been running successfully for years. Recently, they imposed a consistent connection delay of 20 seconds at FTP connection, presumably because th

Re: Python FTP timeout value not effective

2013-09-02 Thread Chris Angelico
On Tue, Sep 3, 2013 at 3:43 AM, John Nagle wrote: > "URLError: failed because the connected party did not properly respond after a > period of time, or established connection failed because connected host > has failed to respond>" > > But in both cases, the comma

Re: Python FTP timeout value not effective

2013-09-02 Thread David Bolen
holed until the timeout): >>> import time, urllib2 >>> def test(timeout): ... print time.ctime() ... try: ... urllib2.urlopen('ftp://xxx', timeout=timeout) ... except: ... print 'Error' ... print time.ctime()

Python FTP timeout value not effective

2013-09-02 Thread John Nagle
I'm reading files from an FTP server at the U.S. Securities and Exchange Commission. This code has been running successfully for years. Recently, they imposed a consistent connection delay of 20 seconds at FTP connection, presumably because they're having some denial of serv

Re: urllib2 FTP Weirdness

2013-02-07 Thread Cameron Simpson
he order of 10 microseconds. Like I said, I do not consider this likely. | > then the firewall may be | > an issue if active FTP is being used. "Active" FTP requires the FTP | > server to connect to you to deliver the data: your end opens a listening | > TCP socket and says

Re: urllib2 FTP Weirdness

2013-02-06 Thread Steven D'Aprano
On Thu, 07 Feb 2013 10:06:32 +1100, Cameron Simpson wrote: > | I cannot see how the firewall could possible distinguish between using > | a temporary variable or not in these two snippets: > | > | # no temporary variable hangs, or fails > | urllib2.urlopen("ftp://ftp2

Re: urllib2 FTP Weirdness

2013-02-06 Thread Cameron Simpson
On 24Jan2013 04:12, Steven D'Aprano wrote: | On Thu, 24 Jan 2013 01:45:31 +0100, Hans Mulder wrote: | > On 24/01/13 00:58:04, Chris Angelico wrote: | >> Possibly it's some kind of race condition?? | > | > If urllib2 is using active mode FTP, then a firewall on your b

Re: ftp - delete multiple files of same type

2013-02-05 Thread chris . annin
> > > im trying to delete all text files from an ftp directory. is there a way to > > delete multiple files of the same extension? > > > > > > I came up with the following code below which works but I have to append > > the string because ftp.nlst re

Re: ftp - delete multiple files of same type

2013-02-05 Thread MRAB
On 2013-02-05 17:29, chris.an...@gmail.com wrote: im trying to delete all text files from an ftp directory. is there a way to delete multiple files of the same extension? I came up with the following code below which works but I have to append the string because ftp.nlst returns: "

Re: ftp - delete multiple files of same type

2013-02-05 Thread Dave Angel
On 02/05/2013 12:29 PM, chris.an...@gmail.com wrote: im trying to delete all text files from an ftp directory. is there a way to delete multiple files of the same extension? I came up with the following code below which works but I have to append the string because ftp.nlst returns: "

ftp - delete multiple files of same type

2013-02-05 Thread chris . annin
im trying to delete all text files from an ftp directory. is there a way to delete multiple files of the same extension? I came up with the following code below which works but I have to append the string because ftp.nlst returns: "-rwx-- 1 user group 0 Feb 04 15:57 New Text Documen

Re: urllib2 FTP Weirdness

2013-01-23 Thread Steven D'Aprano
On Thu, 24 Jan 2013 01:45:31 +0100, Hans Mulder wrote: > On 24/01/13 00:58:04, Chris Angelico wrote: >> On Thu, Jan 24, 2013 at 7:07 AM, Nick Cash >> wrote: >>> Python 2.7.3 on linux >>> >>> This has me fairly stumped. It looks like >>>

Re: urllib2 FTP Weirdness

2013-01-23 Thread Hans Mulder
On 24/01/13 00:58:04, Chris Angelico wrote: > On Thu, Jan 24, 2013 at 7:07 AM, Nick Cash > wrote: >> Python 2.7.3 on linux >> >> This has me fairly stumped. It looks like >> urllib2.urlopen("ftp://some.ftp.site/path";).read() >> will either i

Re: urllib2 FTP Weirdness

2013-01-23 Thread Steven D'Aprano
Nick Cash wrote: > Python 2.7.3 on linux > > This has me fairly stumped. It looks like > urllib2.urlopen("ftp://some.ftp.site/path";).read() > will either immediately return '' or hang indefinitely. But > response = urllib2.urlopen("ftp:

Re: urllib2 FTP Weirdness

2013-01-23 Thread Chris Angelico
On Thu, Jan 24, 2013 at 7:07 AM, Nick Cash wrote: > Python 2.7.3 on linux > > This has me fairly stumped. It looks like > urllib2.urlopen("ftp://some.ftp.site/path";).read() > will either immediately return '' or hang indefinitely. But >

urllib2 FTP Weirdness

2013-01-23 Thread Nick Cash
Python 2.7.3 on linux This has me fairly stumped. It looks like urllib2.urlopen("ftp://some.ftp.site/path";).read() will either immediately return '' or hang indefinitely. But response = urllib2.urlopen("ftp://some.ftp.site/path";) response

paralell ftp uploads and pool size

2013-01-09 Thread ben
Hello, I have a python script that uploads multiple files from the local machine to a remote server in parallel via ftp using p process pool: p = Pool(processes=x) Now as I increase the value of x, the overall upload time for all files drops as expected. If I set x too high however, then an

Re: skip Trackback error for ftp checking

2012-11-12 Thread Chris Angelico
On Mon, Nov 12, 2012 at 8:25 PM, moonhkt wrote: > On Nov 10, 2:50 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: >> >> The same way you would skip any other error when you do something wrong: >> catch the exception. > > Thank.

Re: skip Trackback error for ftp checking

2012-11-12 Thread moonhkt
On Nov 10, 2:50 pm, Steven D'Aprano wrote: > On Fri, 09 Nov 2012 20:51:47 -0800, moonhkt wrote: > > HI All > > > How to skip Trackback warning/error when input ftp address is not > > correct or reject ? > > The same way you would skip any other error when

Re: skip Trackback error for ftp checking

2012-11-09 Thread Steven D'Aprano
On Fri, 09 Nov 2012 20:51:47 -0800, moonhkt wrote: > HI All > > How to skip Trackback warning/error when input ftp address is not > correct or reject ? The same way you would skip any other error when you do something wrong: catch the exception. -- Steven -- http://mail.python

skip Trackback error for ftp checking

2012-11-09 Thread moonhkt
HI All How to skip Trackback warning/error when input ftp address is not correct or reject ? AIX 5.3 from ftplib import FTP import ftplib import sys from optparse import OptionParser parser = OptionParser() parser.add_option("-a","--remote_host_address", dest="remot

Re: newbie question About O'Reilly "Python for Unix and Linux System Administration" ftp Mirror question

2012-09-16 Thread Chris Angelico
On Mon, Sep 17, 2012 at 1:09 AM, moonhkt wrote: > Hi All > > O'Reilly Book ISBN 978-986-6840-36-4. > > python --version > Python 2.6.2 on AIX 5.3 Hi! Thanks for this, good information to open with. > Using this python to get files in ftp server. > > I got below

Re: newbie question About O'Reilly "Python for Unix and Linux System Administration" ftp Mirror question

2012-09-16 Thread Joel Goldstick
On Sun, Sep 16, 2012 at 11:09 AM, moonhkt wrote: > Hi All > > > O'Reilly Book ISBN 978-986-6840-36-4. > > python --version > Python 2.6.2 on AIX 5.3 > > Using this python to get files in ftp server. > > I got below error. What is the error meaning and how

newbie question About O'Reilly "Python for Unix and Linux System Administration" ftp Mirror question

2012-09-16 Thread moonhkt
Hi All O'Reilly Book ISBN 978-986-6840-36-4. python --version Python 2.6.2 on AIX 5.3 Using this python to get files in ftp server. I got below error. What is the error meaning and how to fix ? ftp_mirror.py Traceback (most recent call last): File "/xx../shell/ftpmirror.py&quo

Re: Installing MySQLdb via FTP?

2012-06-09 Thread Tim Johnson
* Tim Johnson [120609 07:30]: > > > > http://mysql-python.hg.sourceforge.net/hgweb/mysql-python/MySQLdb-2.0/file/566baac88764/src > > > > It definitely is. The C extension part is the '_mysql' module, here it > > is /usr/lib64/python2.7/site-packages/_mysql.so. MySQLdb (of which > > _mysql is a

Re: Installing MySQLdb via FTP?

2012-06-09 Thread Tim Johnson
* Corey Richardson [120608 11:39]: > On Fri, 8 Jun 2012 09:55:23 -0800 > Tim Johnson wrote: > > > See the thread titled "Python libraries portable?" you will note > > that Corey Richardson makes the statement that MySQLdb is a C > > extension. I accepted that statement, but upon looking a

Re: Installing MySQLdb via FTP?

2012-06-08 Thread Corey Richardson
On Fri, 8 Jun 2012 09:55:23 -0800 Tim Johnson wrote: > See the thread titled "Python libraries portable?" you will note > that Corey Richardson makes the statement that MySQLdb is a C > extension. I accepted that statement, but upon looking at the > directories (I am on Mac Lion, but bel

Re: Installing MySQLdb via FTP?

2012-06-08 Thread Tim Johnson
* Prasad, Ramit [120608 09:38]: > > Is it possible to install MySQLdb via FTP? > > > > 1)I have a hostmonster account with SSH. I have been able to log in > > and install MySQLdb from the shell. Works fine. > > > > 2)Now I have a client who wants to have a

RE: Installing MySQLdb via FTP?

2012-06-08 Thread Prasad, Ramit
> Is it possible to install MySQLdb via FTP? > > 1)I have a hostmonster account with SSH. I have been able to log in > and install MySQLdb from the shell. Works fine. > > 2)Now I have a client who wants to have a hostmonster account and we > will need MySQLdb. I *will not*

Installing MySQLdb via FTP?

2012-06-07 Thread Tim Johnson
Is it possible to install MySQLdb via FTP? 1)I have a hostmonster account with SSH. I have been able to log in and install MySQLdb from the shell. Works fine. 2)Now I have a client who wants to have a hostmonster account and we will need MySQLdb. I *will not* have SSH access since (as I

Re: sending ftp file list to mail???

2011-10-07 Thread Gabriel Genellina
En Fri, 07 Oct 2011 03:23:57 -0300, selahattin ay escribió: hi all. I want to get my ftp list and send the list to my mail adress... my codes are baglanti = FTP("ftp.guncelyorum.org") baglanti.login("**", "***") print baglanti.dir() posta = MIM

Re: sending ftp file list to mail???

2011-10-07 Thread Gabriel Genellina
En Fri, 07 Oct 2011 03:23:57 -0300, selahattin ay escribió: hi all. I want to get my ftp list and send the list to my mail adress... my codes are And your problem is...? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

sending ftp file list to mail???

2011-10-06 Thread selahattin ay
hi all. I want to get my ftp list and send the list to my mail adress... my codes are from ftplib import FTP import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMETextbaglanti = FTP("ftp.guncelyorum.org") baglanti.login("**&quo

Re: Connect to FTP

2011-02-25 Thread Chris Rebert
On Fri, Feb 25, 2011 at 6:37 AM, sofia stouki wrote: > > Hi all, > > I am trying to put together a script (Python 2.5, windows xp) that connects > to an ftp server and retrieves/uploads files. > > I am sure what I have put together is completely insufficient an

Connect to FTP

2011-02-25 Thread sofia stouki
Hi all,   I am trying to put together a script (Python 2.5, windows xp) that connects to an ftp server and retrieves/uploads files.   I am sure what I have put together is completely insufficient and I get the errors:   Traceback (most recent call last):   File "C:\Documents and Set

Uploading files to an an FTP site through a proxy server which requires authentication

2011-02-09 Thread tkp...@hotmail.com
I would like to upload files to a ftp site, but can't seem to get through our proxy server, which requires authentication. How can one do this in Python (I use 2.7, but am more than happy to use 3.2 rc2) Thanks in advance Thomas Philips -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with FTP

2011-01-21 Thread RizlaJ
Thanks Giampaolo, Benjamin for your responses. You are correct, if I can connect to the ftp site from home and you can connect too then the problem (as you state) lies at the firewall or some security issue. Thanks for your detailed responses, they've been very helpful to me. Kind Re

Re: Problems with FTP

2011-01-21 Thread Giampaolo Rodolà
The standard FTP protocol does not supporty any kind of proxy-ing feature natively. The only closest thing to the concept of a "proxy" we can find in the FTP protocol is the site-to-site transfer feature: http://code.google.com/p/pyftpdlib/wiki/FAQ#What_is_FXP? ...but it's something

Re: Problems with FTP

2011-01-21 Thread Benjamin Kaplan
On Fri, Jan 21, 2011 at 3:01 PM, RizlaJ wrote: > Hi Tom, Giampaolo, > > Thank you both for your swift replies. I have asked our IT dept to see > if it is the firewall that is blocking the FTP. They are working on > that side of things. > > However I would have thought that

Re: Problems with FTP

2011-01-21 Thread RizlaJ
Hi Tom, Giampaolo, Thank you both for your swift replies. I have asked our IT dept to see if it is the firewall that is blocking the FTP. They are working on that side of things. However I would have thought that the following or some version of it would have worked:- >>> impo

Re: Problems with FTP

2011-01-21 Thread Giampaolo Rodolà
The solution proposed on stackoverflow: from ftplib import FTP site = FTP('my_proxy') site.set_debuglevel(1) msg = site.login('anonymous at ftp.download.com', 'password') site.cwd('/pub') ...can not work. The "anonymous at ftp.download.com" par

Re: Problems with FTP

2011-01-21 Thread Thomas Jollans
On Friday 21 January 2011, it occurred to RizlaJ to exclaim: > Hi all, I'm very new to python. I'm using Python 2.7, in a corporate > environment, therefore am behind a proxy server, firewalls etc. > > I can ftp to a barclays capital ftp site ok in internet explorer, but

Problems with FTP

2011-01-21 Thread RizlaJ
Hi all, I'm very new to python. I'm using Python 2.7, in a corporate environment, therefore am behind a proxy server, firewalls etc. I can ftp to a barclays capital ftp site ok in internet explorer, but I can't get the FTP from ftplib to work for me. Can someone please help!

Re: FTP problem

2011-01-15 Thread Justin Ezequiel
'indexftp.barcap.com' only (sans the 'ftp.' prefix) allows me to connect to an FTP server >ftp indexftp.barcap.com Connected to usftp.barcap.com. 220-Connected to usftp.barcap.com. 220 FTP server ready. User (usftp.barcap.com:(none)): -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP problem

2011-01-14 Thread Anurag Chourasia
Please make the below change to get past this problem Change *ftp.*indexftp.barcap.com to indexftp.barcap.com Regards, Anurag On Fri, Jan 14, 2011 at 5:25 PM, Thomas Philips wrote: > I'm using ftplib for the first time, and am having trouble getting it > to work. I type > >

Re: FTP problem

2011-01-14 Thread Sudheer Satyanarayana
gaierror: [Errno 11001] getaddrinfo failed That part of the error indicates, your computer is unable to resolve the IP address for the hostname ftp.indexftp.barcap.com Make sure the hostname is valid. -- With warm regards, Sudheer. S Personal home page - http://sudheer.net | Tech Chorus -

Re: FTP problem

2011-01-14 Thread python
Thomas, > ftp = FTP('ftp.indexftp.barcap.com', 'A Valid Username', ' A Valid Password') Your FTP URI is bad. When I try to connect to your site from the Windows FTP client, I get the following response: Unknown host ftp.indexftp.barcap.com. Malcolm -- http:/

FTP problem

2011-01-14 Thread Thomas Philips
I'm using ftplib for the first time, and am having trouble getting it to work. I type >>> from ftplib import FTP >>> ftp = FTP('ftp.indexftp.barcap.com', 'A Valid Username', ' A Valid >>> Password') where I have suppressed the user

Re: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ariel
You are right, Thanks. On Thu, Jan 6, 2011 at 12:55 PM, Ian Kelly wrote: > On Thu, Jan 6, 2011 at 10:26 AM, Ariel wrote: > > Hi everybody: > > > > I get an error when I used urllib2.urlopen() to open a remote file in a > ftp > > server, My code is the fol

Re: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ian Kelly
On Thu, Jan 6, 2011 at 10:26 AM, Ariel wrote: > Hi everybody: > > I get an error when I used urllib2.urlopen() to open a remote file in a ftp > server, My code is the following: > >>>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv' Looks to me l

I get an error when I used urllib2.urlopen() to open a remote file in a ftp server

2011-01-06 Thread Ariel
Hi everybody: I get an error when I used urllib2.urlopen() to open a remote file in a ftp server, My code is the following: >>> file = 'ftp:/192.168.250.14:2180/RTVE/VIDEOS/Thisisit.wmv' >>> mydata = urllib2.urlopen(file) Traceback (most recent call last): File &quo

RE: list from FTP server to a text file

2011-01-06 Thread Ahmed, Shakir
-Original Message- From: python-list-bounces+shahmed=sfwmd@python.org [mailto:python-list-bounces+shahmed=sfwmd@python.org] On Behalf Of Dan M Sent: Thursday, January 06, 2011 11:06 AM To: python-list@python.org Subject: Re: list from FTP server to a text file On Thu, 06 Jan

Re: list from FTP server to a text file

2011-01-06 Thread Dan M
On Thu, 06 Jan 2011 10:51:42 -0500, Ahmed, Shakir wrote: > Hi, > > I am trying to create a list in a txt file from an ftp server. The > following code is retrieving the list of the files but could not able to > write in a text file. Any help is highly appreciat

list from FTP server to a text file

2011-01-06 Thread Ahmed, Shakir
Hi, I am trying to create a list in a txt file from an ftp server. The following code is retrieving the list of the files but could not able to write in a text file. Any help is highly appreciated. Thanks import os import time from ftplib import FTP ftp = FTP

Re: using python ftp

2010-12-30 Thread Stefan Schwarzer
Hello Matt, On 2010-12-23 01:03, Matt Funk wrote: > i was wondering whether someone can point me whether the following > already exists. > > I want to connect to a server , download various files (for whose name i > want to be able to use a wildcard), and store those files in a given > location o

Re: using python ftp

2010-12-24 Thread Giampaolo Rodolà
; > - Original Message - > From: "Anurag Chourasia" > To: "Matt Funk" > Cc: > Sent: Thursday, December 23, 2010 4:12 AM > Subject: Re: using python ftp > > >> Hi Matt, >> >> I have a snippet to "upload" files (th

Re: using python ftp

2010-12-23 Thread Matt Funk
Chourasia" > To: "Matt Funk" > Cc: > Sent: Thursday, December 23, 2010 4:12 AM > Subject: Re: using python ftp > > >> Hi Matt, >> >> I have a snippet to "upload" files (that match a particular search >> pattern) to a remote

Re: using python ftp

2010-12-23 Thread Octavian Rasnita
Can this lib also work with ftps? Thanks. Octavian - Original Message - From: "Anurag Chourasia" To: "Matt Funk" Cc: Sent: Thursday, December 23, 2010 4:12 AM Subject: Re: using python ftp > Hi Matt, > > I have a snippet to "upload" files (t

Re: using python ftp

2010-12-22 Thread MRAB
On 23/12/2010 02:12, Anurag Chourasia wrote: Hi Matt, I have a snippet to "upload" files (that match a particular search pattern) to a remote server. Variable names are self explanatory. You could tweak this a little to "download" files instead. from ftplib import FT

Re: using python ftp

2010-12-22 Thread Anurag Chourasia
Hi Matt, I have a snippet to "upload" files (that match a particular search pattern) to a remote server. Variable names are self explanatory. You could tweak this a little to "download" files instead. from ftplib import FTP ftp = FTP(hostname) ftp.login(user_id,passwd) ftp.

using python ftp

2010-12-22 Thread Matt Funk
Hi, i was wondering whether someone can point me whether the following already exists. I want to connect to a server , download various files (for whose name i want to be able to use a wildcard), and store those files in a given location on the hard drive. If the file already exists i do not want

Re: Delete files from FTP Server older then 7 days. Using ftputil and ftplib.

2010-05-19 Thread Giampaolo Rodolà
2010/5/19 pilgrim773 : > Hello I am new to Python programming. I need a write a script which > will delete files from a FTP server after they have reached a certain > age, like 7 days for example. I have prepared this code below, but I > get an error message: > The system canno

Re: Delete files from FTP Server older then 7 days. Using ftputil and ftplib.

2010-05-19 Thread MRAB
pilgrim773 wrote: Hello I am new to Python programming. I need a write a script which will delete files from a FTP server after they have reached a certain age, like 7 days for example. I have prepared this code below, but I get an error message: The system cannot find the path specified

Delete files from FTP Server older then 7 days. Using ftputil and ftplib.

2010-05-19 Thread pilgrim773
Hello I am new to Python programming. I need a write a script which will delete files from a FTP server after they have reached a certain age, like 7 days for example. I have prepared this code below, but I get an error message: The system cannot find the path specified: '/test123/*.*'

Re: ftp and python

2010-04-11 Thread Giampaolo Rodola'
On 8 Apr, 07:24, John Nagle wrote: > Tim Chase wrote: > > Matjaz Pfefferer wrote: > >> What would be the easiest way to copy files from one ftp > >> folder to another without downloading them to local system? > > > As best I can tell, this isn't well-supp

Re: ftp and python

2010-04-08 Thread John Nagle
Anssi Saari wrote: John Nagle writes: In theory, the FTP spec supports "three-way transfers", where the source, destination, and control can all be on different machines. But no modern implementation supports that. I remember even using that way back when, Unix machines in

Re: ftp and python

2010-04-08 Thread Anssi Saari
John Nagle writes: > In theory, the FTP spec supports "three-way transfers", where the > source, destination, and control can all be on different machines. > But no modern implementation supports that. I remember even using that way back when, Unix machines in the 1990

Re: ftp and python

2010-04-08 Thread Tim Chase
Simon wrote: You could user FTP.voidcmd() E.G. ftp.voidcmd('RNFT filename.txt')ftp.voidcmd('RNTO newdir/filename.txt') From the rfc: RENAME FROM (RNFR) This command specifies the old pathname of the file which is to be renamed. This command must be immediately followed by a "rename

Re: ftp and python

2010-04-08 Thread Simon
ing that direct to you John :( On 8 April 2010 07:24, John Nagle wrote: > Tim Chase wrote: > >> Matjaz Pfefferer wrote: >> >>> What would be the easiest way to copy files from one ftp >>> folder to another without downloading them to local system? >>>

Re: ftp and python

2010-04-07 Thread John Nagle
Tim Chase wrote: Matjaz Pfefferer wrote: What would be the easiest way to copy files from one ftp folder to another without downloading them to local system? As best I can tell, this isn't well-supported by FTP[1] which doesn't seem to have a native "copy this file from ser

Re: ftp and python

2010-04-07 Thread Tim Chase
Matjaz Pfefferer wrote: What would be the easiest way to copy files from one ftp folder to another without downloading them to local system? As best I can tell, this isn't well-supported by FTP[1] which doesn't seem to have a native "copy this file from server-location to

ftp and python

2010-04-07 Thread Matjaz Pfefferer
Hi, I'm Py newbie and I have some beginners problems with ftp handling. What would be the easiest way to copy files from one ftp folder to another without downloading them to local system? Are there any snippets for this task (I couldnt find example like this)

Re: Problems uploading to IIS using FTP over SSL

2010-02-26 Thread Stephen Nelson-Smith
On Feb 26, 2:05 pm, Stephen Nelson-Smith wrote: > Hello, I'm sorry - I hadn't realised that python-list ended up here as well. Sincere apologies for double-posting. S. -- http://mail.python.org/mailman/listinfo/python-list

[M2Crypto] Problems uploading to IIS using FTP over SSL

2010-02-26 Thread Stephen Nelson-Smith
().strftime(date_format) ftp = ftpslib.FTP_TLS() ftp.connect(ftp_server) ftp.auth_tls() ftp.set_pasv(0) ftp.login(ftp_user, ftp_pass) filename = aggregation_dir + 'zultys-logs_' + date + '.tar.gz' short_name = os.path.split(filename)[1] tarball = open(filename, &#

[M2Crypto] Problems uploading to IIS using FTP over SSL

2010-02-26 Thread Stephen Nelson-Smith
().strftime(date_format) ftp = ftpslib.FTP_TLS() ftp.connect(ftp_server) ftp.auth_tls() ftp.set_pasv(0) ftp.login(ftp_user, ftp_pass) filename = aggregation_dir + 'zultys-logs_' + date + '.tar.gz' short_name = os.path.split(filename)[1] tarball = open(filename, 'rb

Re: Trouble with ftplib uploading to an FTP server

2010-02-25 Thread Sky Larking
2020.txt > > > in that .txt file it reads: > > > Asset: TestMachine.local Checking in from IP#: xx.xxx.xx.xxx > > > This is what I want, but the FTP piece doesn't seem to work... > >         But since you haven't CLOSED the file before invoking the FTP >

Re: Trouble with ftplib uploading to an FTP server

2010-02-24 Thread Sky Larking
On Feb 24, 3:56 pm, MRAB wrote: > Sky Larking wrote: > > This bit of code is designed to get the external IP address and > > hostname of a client , write it locally to a file, then upload to an > > FTP server. It works locally( one can see the IP number and hostname >

Re: Trouble with ftplib uploading to an FTP server

2010-02-24 Thread MRAB
Sky Larking wrote: This bit of code is designed to get the external IP address and hostname of a client , write it locally to a file, then upload to an FTP server. It works locally( one can see the IP number and hostname with a time stamp in /Users/admin/Documents) , but when the file is opened

Trouble with ftplib uploading to an FTP server

2010-02-24 Thread Sky Larking
This bit of code is designed to get the external IP address and hostname of a client , write it locally to a file, then upload to an FTP server. It works locally( one can see the IP number and hostname with a time stamp in /Users/admin/Documents) , but when the file is opened on the server after

Re: (OT) Recommend FTP Client

2009-11-12 Thread David M. Besonen
On 11/12/2009 11:26 AM, Dave Angel wrote: > Try http://fireftp.mozdev.org/ in the past i found this to be buggy. i'd recommend something different. what is your OS? -- david -- http://mail.python.org/mailman/listinfo/python-list

Re: (OT) Recommend FTP Client

2009-11-12 Thread Victor Subervi
Thanks. V On Thu, Nov 12, 2009 at 2:26 PM, Dave Angel wrote: > > > Victor Subervi wrote: > >> Hi; >> Someone on this list just recommended I find an ftp client that enables me >> to change line endings. He indicated that it would be easy, but googling I >> ha

Re: (OT) Recommend FTP Client

2009-11-12 Thread Dave Angel
Victor Subervi wrote: Hi; Someone on this list just recommended I find an ftp client that enables me to change line endings. He indicated that it would be easy, but googling I haven't been able to find one. I would prefer a free client, but whatever. Please send me a recommendation

Re: (OT) Recommend FTP Client

2009-11-12 Thread Tim Chase
Someone on this list just recommended I find an ftp client that enables me to change line endings. He indicated that it would be easy, but googling I haven't been able to find one. I would prefer a free client, but whatever. Please send me a recommendation. How about the command line c

(OT) Recommend FTP Client

2009-11-12 Thread Victor Subervi
Hi; Someone on this list just recommended I find an ftp client that enables me to change line endings. He indicated that it would be easy, but googling I haven't been able to find one. I would prefer a free client, but whatever. Please send me a recommendation. TIA, Victor --

ANN: Python FTP Server library (pyftpdlib) 0.5.2 released

2009-09-13 Thread Giampaolo Rodola'
Hi, I'm pleased to announce release 0.5.2 of Python FTP Server library (pyftpdlib). http://code.google.com/p/pyftpdlib === About === Python FTP server library provides a high-level portable interface to easily write asynchronous FTP servers with Python. pyftpdlib is currently the most com

  1   2   3   4   5   >