TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: RICHARD KETTLEWELL
from: MM0FMF
date: 2018-05-15 17:09:00
subject: Re: ftp causing invalid s

On 15/05/2018 10:58, Richard Kettlewell wrote:
> RobH  writes:
>> On 15/05/18 09:20, The Natural Philosopher wrote:
>>> On 15/05/18 07:14, Cordy wrote:
>>>> Il 14/05/2018 21:23, RobH ha scritto:
>>>>> curl -T /home/pi/filename.jpg
>>>>> ftp://ftp-host-machine//yourwebsite/folder/filename.jpg --user
>>>>
>>>> Try to add a third "/" after "ftp:".
>>>
>>>    Try deleting the second / after 'ftp-host-machine'  :-)
>>
>> This is what I have now:
>>
>> curl -T /home/pi/filename.jpg ftp://NAS server ip
>> address/mnt/folder/subfolder
>>
>> And it still fails at the ftp:// part
>
> Ignore the people who are telling you to tinker with the URL. You cannot
> insert shell commands into Python scripts like that; it will never
> work.
>
> Instead pay attention to the people telling you to use os.system or the
> subprocess module.
>
I've tried telling him but he's not listening.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.