그놈스케쥴을 쓰는것보다 그냥 터미널에서 작업하는게 더 빠를것 같은…
원문 : [url:3ref5r6v]http://readytoact.gnukorea.com/base/74[/url:3ref5r6v]
[Linux] GUI tool for at, cron : gnome-schedule
1.설치
readytoact@readytoact-laptop:~$ sudo apt-get install gnome-schedule
설치이후 프로그램-시스템도구 에 등록된다
2.실행
사용자 삽입 이미지
gnome-schedule 실행화면
- 작업예약
새로만들기를 통해 반복작업, 1회작업을 설정할 수 있다
[img:3ref5r6v]http://readytoact.gnukorea.com/attach/1/1400214886.png[/img:3ref5r6v]
반복작업(cron)
[img:3ref5r6v]http://readytoact.gnukorea.com/attach/1/1336264867.png[/img:3ref5r6v]
1회 작업(at)
[img:3ref5r6v]http://readytoact.gnukorea.com/attach/1/1110710158.png[/img:3ref5r6v]
참고로 간단한 at 명령어 사용법
- at 데몬 시작
readytoact@readytoact-laptop:~$ sudo /etc/init.d/atd start
[sudo] password for readytoact:
- Starting deferred execution scheduler atd [ OK ]
- 작업예약
-오전 2시에 시스템 종료
root@readytoact-laptop:~# at 02:00 am
warning: commands will be executed using /bin/sh
at> shutdown -h now
at> <EOT> (ctrl + d)
job 2 at Wed May 6 02:00:00 2009
- 정해진시간에 스크립트실행
readytoact@readytoact-laptop:~/bin$ at 00:00
warning: commands will be executed using /bin/sh
at> ~/bin/rec_sweetbox.sh
at> <EOT>
job 6 at Wed May 6 00:00:00 2009
-오전 2시 10분에 시스템 종료
root@readytoact-laptop:~# at 02:10 am
warning: commands will be executed using /bin/sh
at> /bin/sync
at> /sbin/halt
at> <EOT>
- 기타 시간 예약
at 6am + 3 days (3일후 오전 6시)
at 11pm May 8 (5월 8일 오후 11시)
at 3pm tomorrow (내일 오후 3시에 작업)
- 예약된 작업 확인 : atq
root@readytoact-laptop:~# atq
6 Wed May 6 00:00:00 2009 a readytoact
7 Wed May 6 02:10:00 2009 a root