Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-06-2015, 04:43 AM   #1
Registered: Dec 2013
Posts: 35

Rep: Reputation: Disabled
python FTP send command

hello Experts!
need some help here with python FTP. so what i'm trying to do is, from a linux machine, ill be sending over a python script to a windows machine via python ftp. that works fine with no problem. now, i want to execute that python script i sent remotely. im having trouble with that. here's my code to just execute the script:

p.s : please dont suggest other options such as python paramiko due to many network security reasons

ftp = ftplib.FTP("windows machine name")
ftp.login("username", "password")
ftp.cwd("where\\python\\script\\is kept\\")

but looks like it doesn't recognize that command. how do i accomplish this please?

Last edited by simhumcon; 04-06-2015 at 04:47 AM.
Old 04-06-2015, 09:52 AM   #2
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Unless you have a really special ftp server like ssh's sftp, you can't. It's not something that is supported by ftp protocol.
Old 04-06-2015, 08:53 PM   #3
Registered: Dec 2013
Posts: 35

Original Poster
Rep: Reputation: Disabled
i thought so. thank you very much! ill have to use ssh paramiko i guess


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Expect script: 2 questions: Send ssh response to txt, and send command with quotes Kgeil Linux - General 6 02-19-2015 01:52 PM
[SOLVED] RHEL 6 cannot initiate FTP command: bash: ftp: command not found DavidDiepUSC Linux - Newbie 20 11-21-2012 05:37 AM
[SOLVED] how to send the output of send command to a file auma78 Linux - Newbie 2 01-23-2011 01:06 AM
How do I make python programs run without entering the command python? trist007 Programming 5 03-22-2009 09:21 PM
python s.send > c tcpServer donnied Programming 8 02-09-2008 11:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration