The first thing I would try is to make sure you are able to transfer
manually. In addition, permissions and ownerships need to be examined
(for files, directories, and script). Make sure umask is set and also
set the sticky bit on your script (to prevent ownersip/permissions
problems). As always, make sure antivirus, router, intranet, and/or
firewalls are not causing problems. As a simple test - you may want to
write a little script that simply tries to execute the transfer. If
the existing script is written well (to handle errors, valid coding et
al)...chances are it is one of the above issues (or combination). Have
you tried manual FTP or testing with another computer? Does the file
you are attempting to transfer exist? Are you performing a transfer in
binary mode? Try zipping the file you want before transfer.
I do alot of communications programming - it is probably something
deceptively simple as one of the above mentioned things.
To rule out python issues I would certainly try some simple shell
scripting to test FTP functionality.
Regards,
Jim Sparkman
Sent from my iPhone
On Dec 21, 2010, at 3:09 PM, Mark Phillip <[email protected]> wrote:
Thanks for the thoughts, guys. Sadly, no luck there. I've tried
forward and backwards slashes, changing the working directory and
not, and even creating new users and starting from scratch.
Because deletes and puts work just fine, I'm afraid it's some
underlying Linux/Windows communication problem that I just won't be
able to solve.
Thanks,
Mark
http://markphillip.com
On Tue, Dec 21, 2010 at 11:17 AM, Larry Kubin
<[email protected]> wrote:
Haven't used the SFTP libraries, but we run our game server code
locally on windows during development. It uses Python's Twisted
Framework and we use backslashes in directory paths. In a string the
backslash "\" is used to escape characters, so you need to escape the
backslash itself with another backslash or use a raw string like so:
r'C:\My\Windows\Path'
- Larry
On Tue, Dec 21, 2010 at 10:42 AM, Josh Kleinpeter <[email protected]>
wrote:
> First thing first, have you tried it manually? Is there a
difference in the commands you type?
>
> It is Windows, maybe '\' instead of '/'?
>
>
> On Dec 21, 2010, at 10:20 AM, Mark Phillip wrote:
>
>> Morning folks,
>>
>> I have a python script that has been working for quite some time
that connects to an SFTP server, grabs specific files, downloads
them, and finally deletes them off of the remote server.
>>
>> Everything works just fine, but we've had to point to a new SFTP
server thats running Windows.
>>
>> Now, for some reason, I'm able to push files, delete files, and
list files in a directory, but not actually download the files.
I've tried every combination of '', '.', './', '/', '/home/', '/
foldername/', I can think of with zero success.
>>
>> Does this problem ring a bell for anyone?
>>
>>
>>
>> Thanks,
>> Mark
>> http://markphillip.com
>>
>>
>> --
>> Our Web site: http://www.RefreshAustin.org/
>>
>> You received this message because you are subscribed to the
Google Groups "Refresh Austin" group.
>>
>> [ Posting ]
>> To post to this group, send email to Refresh-
[email protected]
>> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
>> We do not accept job posts from recruiters.
>>
>> [ Unsubscribe ]
>> To unsubscribe from this group, send email to
[email protected]
>>
>> [ More Info ]
>> For more options, visit this group at
http://groups.google.com/group/Refresh-Austin
>
> --
> Our Web site: http://www.RefreshAustin.org/
>
> You received this message because you are subscribed to the Google
Groups "Refresh Austin" group.
>
> [ Posting ]
> To post to this group, send email to [email protected]
> Job-related postings should follow http://tr.im/refreshaustinjobspolicy
> We do not accept job posts from recruiters.
>
> [ Unsubscribe ]
> To unsubscribe from this group, send email to
[email protected]
>
> [ More Info ]
> For more options, visit this group at
http://groups.google.com/group/Refresh-Austin
>
--
Larry Kubin
--
Our Web site: http://www.RefreshAustin.org/
You received this message because you are subscribed to the Google
Groups "Refresh Austin" group.
[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/
refreshaustinjobspolicy
We do not accept job posts from recruiters.
[ Unsubscribe ]
To unsubscribe from this group, send email to
[email protected]
[ More Info ]
For more options, visit this group at
http://groups.google.com/group/Refresh-Austin
--
Our Web site: http://www.RefreshAustin.org/
You received this message because you are subscribed to the Google
Groups "Refresh Austin" group.
[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/
refreshaustinjobspolicy
We do not accept job posts from recruiters.
[ Unsubscribe ]
To unsubscribe from this group, send email to
[email protected]
[ More Info ]
For more options, visit this group at
http://groups.google.com/group/Refresh-Austin
--
Our Web site: http://www.RefreshAustin.org/
You received this message because you are subscribed to the Google Groups "Refresh
Austin" group.
[ Posting ]
To post to this group, send email to [email protected]
Job-related postings should follow http://tr.im/refreshaustinjobspolicy
We do not accept job posts from recruiters.
[ Unsubscribe ]
To unsubscribe from this group, send email to
[email protected]
[ More Info ]
For more options, visit this group at
http://groups.google.com/group/Refresh-Austin