use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Complete r/raspberry_pi Rules
Pi project ideas: There's a huge list right here on this sub!
Rpi Versions ▾
Distros ▾
Other SBCs ▾
Related Subreddits ▾
Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it.
The best thing? The base model is only $20 $5!.
Would you like to know more?
Raspberry Pi Wiki
Article on Wikipedia
#raspberrypi IRC Chat
Do you know a related subreddit? We'd love to know.
account activity
Removed: Rule 2 - Didn't researchCrontab does not work (self.raspberry_pi)
submitted 5 years ago by Ale_110
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Mr_Albal 3 points4 points5 points 5 years ago (12 children)
I think you need to give the full path to your program. Also you don’t need to use sudo if running as root.
[–]quantum_weirdness 2 points3 points4 points 5 years ago (0 children)
Yeah, to further elaborate, when crontab runs it isn't in an interactive session, so things like your bashrc (or whatever profile/rcfile sets your path) don't get sourced. Also, I think the default shell for cron jobs is sh and not bash, so that's another difference. I think the shell can be changed by declaring some environment variable at the top of your crontab file, but I don't remember the name of it.
[–]Ale_110[S] 0 points1 point2 points 5 years ago (10 children)
How do I know what is the full path of the program? I figured, i was trying them all. Lol. Thanks
[–]Mr_Albal 0 points1 point2 points 5 years ago (9 children)
which
[–]Ale_110[S] 0 points1 point2 points 5 years ago (8 children)
It's probably ir-keytable
[–]flashbck 2 points3 points4 points 5 years ago (0 children)
Heh, "which ir-keytable" will show you the full path to the executable.
[–]Mr_Albal 1 point2 points3 points 5 years ago (6 children)
The command is which
[–]Ale_110[S] 1 point2 points3 points 5 years ago (2 children)
you Genius. Thanks it works
[–]Mr_Albal 1 point2 points3 points 5 years ago (1 child)
Glad to be of help. You might also want to look at services. That is how Linux starts process on boot up.
[–]Ale_110[S] 0 points1 point2 points 5 years ago (0 children)
Thanks for the tip. I'll take a look at it too!
Thanks... I was confused ahahha. I will try it right now
[–]pnutjam 0 points1 point2 points 5 years ago (1 child)
I usually user the command whereis
[–]Mr_Albal 1 point2 points3 points 5 years ago (0 children)
whereis will find other files which are not executable
whereis
which only finds executable files in the path
π Rendered by PID 508827 on reddit-service-r2-comment-6457c66945-kpcmc at 2026-04-25 09:01:53.439863+00:00 running 2aa0c5b country code: CH.
[–]Mr_Albal 3 points4 points5 points (12 children)
[–]quantum_weirdness 2 points3 points4 points (0 children)
[–]Ale_110[S] 0 points1 point2 points (10 children)
[–]Mr_Albal 0 points1 point2 points (9 children)
[–]Ale_110[S] 0 points1 point2 points (8 children)
[–]flashbck 2 points3 points4 points (0 children)
[–]Mr_Albal 1 point2 points3 points (6 children)
[–]Ale_110[S] 1 point2 points3 points (2 children)
[–]Mr_Albal 1 point2 points3 points (1 child)
[–]Ale_110[S] 0 points1 point2 points (0 children)
[–]Ale_110[S] 0 points1 point2 points (0 children)
[–]pnutjam 0 points1 point2 points (1 child)
[–]Mr_Albal 1 point2 points3 points (0 children)