Re: [Tutor] socket / over network

2008-04-09 Thread linuxian iandsd
in case it helps here is a very basic example: import MySQLdb, glob, os, re, shutil from ftplib import FTP a=file_to_fetch ftp=FTP('ftp_server') ftp.login('user_name','password') try: aa=ftp.nlst(a) b='/home/a' bb=os.path.basename(aa[0]) e=os.path.basename(b) c=open(b, 'wb')

Re: [Tutor] socket / over network

2008-04-07 Thread Alan Gauld
"Nathan McBride" <[EMAIL PROTECTED]> wrote > Going off of wha tyou said, if I choose to use ftp, is there a way i > could do everything from within python including the server to get > the > files? Is there like a ftp module for python to help in the passing > of > the files between the comput

Re: [Tutor] socket / over network

2008-04-06 Thread Kim Hawtin
Hi Nathan, Nathan McBride wrote: > Alan Gauld wrote: >> "Nathan McBride" <[EMAIL PROTECTED]> wrote >>> I'm pretty tired of the lame backup solution we have at work. >>> Could anyone point me to a (more or less newbieish) example of how >>> to >>> have python open a socket on one box and get data f

Re: [Tutor] socket / over network

2008-04-06 Thread Nathan McBride
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan Gauld wrote: > "Nathan McBride" <[EMAIL PROTECTED]> wrote > > Hi Nathan, > > Please don't reply to an existing message to start a new discussion. > It messes up those of us using threaded mail/news readers and > increases the likelihood that your

Re: [Tutor] socket / over network

2008-04-03 Thread linuxian iandsd
re-inventing the wheel ? http://www.howtoforge.com/linux_backuppc > > > On Thu, Apr 3, 2008 at 3:44 PM, Alan Gauld <[EMAIL PROTECTED]> > wrote: > > > "Nathan McBride" <[EMAIL PROTECTED]> wrote > > > > Hi Nathan, > > > > Please don't reply to an existing message to start a new discussion. > > It m

Re: [Tutor] socket / over network

2008-04-03 Thread Alan Gauld
"Nathan McBride" <[EMAIL PROTECTED]> wrote Hi Nathan, Please don't reply to an existing message to start a new discussion. It messes up those of us using threaded mail/news readers and increases the likelihood that your message will be missed. > I'm pretty tired of the lame backup solution we ha

[Tutor] socket / over network

2008-04-03 Thread Nathan McBride
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey guys, I'm pretty tired of the lame backup solution we have at work. Could anyone point me to a (more or less newbieish) example of how to have python open a socket on one box and get data from it, then have another box write to it over the network