TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: DRUCK
from: ROBH
date: 2018-05-15 20:40:00
subject: Re: ftp causing invalid s

On 14/05/18 21:13, druck wrote:
> On 14/05/2018 20:23, RobH wrote:
>> curl -T /home/pi/filename.jpg ftp://ftp-ipaddressof NAS
>
> import os, subprocess
>
> def GetUrl_curl(url):
>      with open(os.devnull, 'w') as FNULL:
>          return subprocess.check_output(["curl", "-L", url],
stderr=FNULL)
>
> ---druck

Thanks but that fails at the first line.

import os, subprocess returns bash: import: command not found.

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