Ich möchte Code in Beaglebone schwarz ausführen, ohne ssh zu tun, wenn ich Energie anlege.Laufender Code ohne ssh in Beaglebone schwarz
Ich habe versucht, einige Befehle zu setzen, um den Code in ~/.bashrc
Datei auszuführen, aber es funktioniert nur, wenn ich mich mit ssh
anmelden. Ich habe das gleiche mit /etc/rc.local
Datei versucht, aber nicht funktioniert auch nach ssh.
Ich habe auch versucht @reboot my_command
in crontab -e
, aber es erfordert auch mich mit ssh einloggen Irgendwelche Vorschläge ??
EDIT:
[email protected]:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
[email protected]:~# ps aux | grep cron | grep -v grep
root 295 0.0 0.3 4428 1988 ? Ss 15:03 0:00 /usr/sbin/cron -f
Ausgabe von crontab -e
: letzten Zeilen
[email protected]:~# 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
ist das Skript I
Es unterstützt 'cron' sowie' init'. Kannst du erklären, wie man sie in meinem Fall benutzt? Sagen Sie beim Start "execute_some" -Befehl an "some_location". – Rahul
Wissen Sie, welchen Geschmack von Cron es verwendet? –
http://unix.stackexchange.com/questions/188042/running-a-script-during-boot-startup-init-d-vs-cron-reboot könnte etwas Licht in die Syntax bringen. –