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

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.

--
https://www.greenend.org.uk/rjk/

--- 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™.