I am attempting to automatically start my Smashing Dashboard when my Raspberry Pi boots. I plan to run a script through the @reboot option in crontab (similarily to how I already automatically shutdown the dashboard). However I'm having trouble running the script below.
command = 'cd "/home/pi/test"'
command2 = 'smashing start'
system "echo hi"
system command
puts command
system "echo Movement"
system command2
puts command2
The script itself is just being run from the terminal just now using
ruby /home/pi/start_up.rb.
Starting Smashing appears to fail because the working directory is not moved through the cd "home/pi/test"
command as when the script is run I recieve the following error
Could not locate Gemfile or .bundle/ directory
There certainly is a Gemfile in the Test directory. This is the same error I get if I run smashing start
directly from the home/pi folder suggesting that folder is never moved. Is there a correct way to do this?
Any advice would be greatly appreciated.