galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Time lapse project

Sun Jan 10, 2016 8:41 pm

Hello
I'm trying to do this time lapse project on the Raspberry Pi website
https://www.raspberrypi.org/learning/ti ... rksheet.md
When I go to test it at the end of section two I get this error message-
bash: ./camera.sh: Permission denied
I have been over and over it to make sure I've typed it in properly and followed all the instructions about going to the right directory for the Camera folder etc.
I hope someone can help.
Thanks.

rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

Re: Time lapse project

Sun Jan 10, 2016 9:39 pm

Try it as root, or preface with ‘sudo'

galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Re: Time lapse project

Mon Jan 11, 2016 9:10 am

Thanks for replying. Yes I did try sudo. Should I remove the . / before camera.sh? I don't know how to run in root.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Time lapse project

Mon Jan 11, 2016 9:14 am

Can you post the output of

Code: Select all

ls -l camera.sh

galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Re: Time lapse project

Mon Jan 11, 2016 10:23 am

Ok but it'll have to be this evening. Thanks.

galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Re: Time lapse project

Mon Jan 11, 2016 7:48 pm

Hello. This is what came up when I typed that into the terminal and pressed return.
-rw-r--r-- 1 pi pi 113 Jan 10 20:25 camera.sh
I hope I did it right.

danjperron
Posts: 3526
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Time lapse project

Mon Jan 11, 2016 7:50 pm

your script is not executable

just type

Code: Select all

chmod +x camera.sh
and then it should work

galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Re: Time lapse project

Mon Jan 11, 2016 8:18 pm

Thanks for all your help. I've found that the problem was a stupid newbie error of missing out the i in raspistill. I checked it several times but saw it straight away when I opened the code just now. :oops:

Return to “Camera board”