On Sun, 20 May 2018 20:08:55 +0100, RobH declaimed the
following:
>I mounted the directory again:
>
>pi@raspberrypi:~ $ sudo mount //192.168.0.22/CCTV/PiZero
>/mnt/CCTV/PiZero -o username=root,password=******
>
>Then I ran the python script:
>
>pi@raspberrypi:~ $ python intruder_recmotion.pyTraceback (most recent
>call last):
> File "intruder_recmotion.py", line 37, in
> shutil.copyfile(RAMname, NASname)
> File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
> with open(dst, 'wb') as fdst:
>IOError: [Errno 13] Permission denied:
>'/mnt/CCTV/PiZero/2018-20-20_20.02.21.h264'
>
You might need to do the "sudo chown" stuff to allow the non-root
account to write to the mount point.
>
>Then :
>
>pi@raspberrypi:~ $ rm /run/shm/*.h264
>pi@raspberrypi:~ $ rm /dev/shm/*.h264
>rm: cannot remove '/dev/shm/*.h264': No such file or directory
Sort of expected -- as I mentioned, it seems that /run/shm and /dev/shm
both are two paths for the same actual directory.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|