Search

'예약작업'에 해당되는 글 1건

  1. 2009.05.05 [Linux] Windows의 예약작업과 같은 도구 - gnome-schedule
라디오 예약 녹음때문에 crontab을 쓰다가 검색을 해보니 gnome-schedule라고, at, crontab의 GUI버전이 있다. crontab설정이 그다지 어려운 일은 아니지만 이 녀석을 이용하면 그래도 편하게 작업할 듯 싶어서 설치해봤다.

[Linux] GUI tool for at, cron : gnome-schedule

1.설치

readytoact@readytoact-laptop:~$ sudo apt-get install gnome-schedule

설치이후 프로그램-시스템도구 에 등록된다

2.실행
사용자 삽입 이미지

gnome-schedule 실행화면


3. 작업예약
새로만들기를 통해 반복작업, 1회작업을 설정할 수 있다
사용자 삽입 이미지

반복작업(cron)

사용자 삽입 이미지

1회 작업(at)



참고로 간단한 at 명령어 사용법

1) at 데몬 시작
readytoact@readytoact-laptop:~$ sudo /etc/init.d/atd start
[sudo] password for readytoact:
 * Starting deferred execution scheduler atd                             [ OK ]

2) 작업예약
-오전 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>


3) 기타 시간 예약
at 6am + 3 days (3일후 오전 6시)

at 11pm May 8 (5월 8일 오후 11시)

at 3pm tomorrow (내일 오후 3시에 작업)

4) 예약된 작업 확인 : 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