On 04/06/18 18:27, Ahem A Rivet's Shot wrote:
> On Mon, 4 Jun 2018 17:31:20 +0100
> Andy Burns wrote:
>
>> RobH wrote:
>>
>>> When I run this: sudo mount -t cifs -o //192.168.0.22/mnt/CCTV/PiZero
>>> /mnt/CCTV/PiZero
>>
>> You most likely don't want the first /mnt
>
> What's that -o doing in there ? Unless I'm much mistaken it's
> turning the //192.168.0.22/mnt/CCTV/PiZero into an option which would
> probably cause an error (unsupported option or somesuch) except that since
> mount can't see a special it goes looking in fstab for the mountpoint and
> fails to find it and so bombs out with that error instead.
>
Still the same error without the-o
sudo mount -t cifs //192.168.0.22/CCTV/PiZero /mnt/CCTV/PiZero
Password for root@//192.168.0.22/CCTV/PiZero: ******
pi@raspberrypi:~ $ python intruder.py
Traceback (most recent call last):
File "intruder.py", line 40, in
shutil.copyfile(RAMname, NASname)
File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory:
'//192.168.0.22/CCTV/PiZero/2018-06-04_17.47.17.h264'
pi@raspberrypi:~ $
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|