%EC%9D%84%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%EC%8B%A4%ED%96%89%ED%95%A0%20%EC%88%98%20%EC%9E%88%EB%82%98%EC%9A%94%3F%20.png)
부팅 후 간단한 명령을 실행하고 싶습니다.
cd /mypath
# then
./mycommand
내가 어떻게 해?
답변1
두 가지 솔루션:
첫 번째는 명령의 전체 경로를 다음 위치에 입력하는 것입니다 /etc/rc.local
.
/mypath/mycommand
또는 크론 방식:
crontab -e
@reboot cd /mypath;./mycommand
crontab 매뉴얼에서:
@reboot Run once, at startup.