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)
|