I want to run some code in
Beaglebone black without doing
ssh when I apply power.
I have tried putting some commands to run the code in
~/.bashrc file but it only works when I login using
ssh. I have tried same thing with
/etc/rc.local file but didn't work even after ssh.
I have also tried
@reboot my_command in
crontab -e but it also requires me to login using ssh.
root@beaglebone:~# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.6 (jessie) Release: 8.6 Codename: jessie root@beaglebone:~# ps aux | grep cron | grep -v grep root 295 0.0 0.3 4428 1988 ? Ss 15:03 0:00 /usr/sbin/cron -f
crontab -e: last few lines
root@beaglebone:~# crontab -e # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command #@reboot /root/wiringBone-master/library/main not working #*/5 * * * * /root/wiringBone-master/library/main works
main is the script I want to run
root@beaglebone:~# systemctl enable cronie.service Failed to execute operation: No such file or directory
Permission and owner of
root@beaglebone:~/wiringBone-master/library# ll main -rwxr-xr-x 1 root root 66744 May 27 16:15 main