python


Trying to ftp from my system to remote server


I'm trying to store a file from my local pc to a remote server.
I have tried the below code :
ftp = FTP('172.31.144.1', 'jess', 'ann')
ftp.cwd("/etc/dhcp/")
ftp.storlines("STOR "+dhcpd.conftst, open("/ws/jesgeorg-sjc/je.txt", 'rb'))
I get the below error :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/auto/pysw/cel55/python/2.7.8/lib/python2.7/ftplib.py", line 492, in storlines
self.voidcmd('TYPE A')
File "/auto/pysw/cel55/python/2.7.8/lib/python2.7/ftplib.py", line 254, in voidcmd
return self.voidresp()
File "/auto/pysw/cel55/python/2.7.8/lib/python2.7/ftplib.py", line 229, in voidresp
resp = self.getresp()
File "/auto/pysw/cel55/python/2.7.8/lib/python2.7/ftplib.py", line 224, in getresp
raise error_perm, resp
ftplib.error_perm: 500 OOPS: vsf_sysutil_recv_peek: no data
>>>
Can anyone help me find the error?
Jessi

Related Links

Regex for weekdays in python [closed]
Detect Changes to Environment Variables
Select all by type: Geometry. Equivalent Python script?
Sorting algorithm doesn't work
How to avoid “Name 're' is not defined” error while connecting pycharm remote debugger?
Python - Generate binary list with itertools
Capture domain and path from URL with regex
Pylab animation multiple figures
Django Password Reset Email Error 10060
Excel delimited file
Why is scrapy dumping thousands of `ERROR` log messages without any description of the error?
Python 2.5.4: how to find sum of logarithm values
Posting a json data in url — Python
How to Covert to dictionary in Python
Python __getitem__ error
How do I use the 'json' module to read in one JSON object at a time?

Categories

HOME
rest
ajax
nlp
angular-cli
voip
performancecounter
ruby-on-rails-3
ext.net
google-spreadsheet-api
structuremap
slim-3
camera-calibration
gatsby
automata
ios10.3
kadanes-algorithm
cython
statusbar
multiplayer
binutils
explode
skmaps
hash-collision
dd-wrt
cell-array
red-black-tree
spring-insight
spreedly
sendgrid-templates
productivity
service-fabric-stateful
powermta
jdbi
facebook-chatbot
amazon-clouddrive
fqdn
windows-firewall
google-maps-ios
photon-controller
efxclipse
keycode
icefaces
slam-algorithm
asteriskami
dac
flexjson
brackets-shell
void
datainputstream
zuora
programming-paradigms
mptcp
base32
leadtools-sdk
debian-based
uos
belongs-to
em
alpha-transparency
level
roxygen
bfd
convex-polygon
shiva3d
attachevent
socketstream
symfony-2.0
legacy-code
ninject-extensions
hashalgorithm
zookeeper
surf
curljs
qtembedded
goliath
windows-live-id
ets
delegatecommand
oggvorbis
asp.net-mvc-controller
windows-controls
revision
odbc-sql-server-driver

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App