TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROBH
from: =?UTF-8?Q?BJ=C3=B6RN_LUND
date: 2018-05-16 15:47:00
subject: Re: ftp causing invalid s

On 2018-05-15 21:53, RobH wrote:
> On 15/05/18 09:55, Björn Lundin wrote:
>> On 2018-05-15 10:39, RobH wrote:
>>> ftp://NAS server ip address/mnt/folder/subfolder
>>
>> A NAS usually exports fileshare, and often via smb/cifs
>> mount a fileshare to the NAS on the pi,
>> and save the picture directly on the NAS - without ftp.
>>
>>
>> eg
>> #mount -t cifs -o username=USERNAME,password=PASSWD
>> //192.168.1.88/shares /mnt/share
>>
>> (as root)
>>
>> I
>> from https://askubuntu.com/questions/101029/how-do-i-mount-a-cifs-share
>>
>>
>>
> Do you mean I should add a fileshare to the NAS in the /etc/fstab
> window. This lists all of my drives and I don't want to screw it up
>
> I've added a Unix share for the PI Zero on one of the drives.


I mean that the NAS likely PUBLISHES a fileshare.
On the PI, you should mount that fileshare
That will make the python program to think
it writes on a local drive, when in fact you write on the NAS - without ftp.

so if your python program writes to
 /mnt/share/file.jpg
the file ends up on the NAS, given the example above

you can mount it in /etc/fstab if you want,
or mount by hand as described above





--
--
Björn

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