Re: [Tutor] Passing command line argument in function

2005-06-14 Thread Gary Taylor
>> >> >> ftp.storbinary(stor file_to_transfer, open(file_to_transfer,"r")) >> > >You need to create the command as a string: >ftp.storbinary("stor " + file_to_transfer, >open(file_to_transfer,"r")) > >Kent That worked perfectly, I was way off. Thank-you! Gary p.s. sorry for the out of thread

Re: [Tutor] Passing command line argument in function

2005-06-14 Thread Kent Johnson
Gary Taylor wrote: > I'm trying to pass the name of a file as the first argument > to the ftp.storbinary function(?) below. The only thing I > can get to work is the real file name hard coded as the > argument. I've tried parenthesis, single quotes, double > quotes, and many combinations of the p

Re: [Tutor] Passing command line argument in function

2005-06-13 Thread Liam Clarke
What path is the file? On 6/14/05, Gary Taylor <[EMAIL PROTECTED]> wrote: I'm trying to pass the name of a file as the first argumentto the ftp.storbinary function(?) below.  The only thing Ican get to work is the real file name hard coded as theargument.  I've tried parenthesis, single quotes, dou

[Tutor] Passing command line argument in function

2005-06-13 Thread Gary Taylor
I'm trying to pass the name of a file as the first argument to the ftp.storbinary function(?) below. The only thing I can get to work is the real file name hard coded as the argument. I've tried parenthesis, single quotes, double quotes, and many combinations of the previous. I've tried passing s