<ask> Tugas Praktikum : crontab detik gmn caranya?

Tempat nongkrong. Diskusi bebas di luar topik.
User avatar
uchil
Posts: 7
Joined: 16 Apr 2013, 17:57
Location: surabaya , indonesia

<ask> Tugas Praktikum : crontab detik gmn caranya?

Postby uchil » 16 Apr 2013, 18:02

buat penjadwalan agar system dapat menghapus semua inputan dari terminal setia 30 detik secara permanent , baik dalam mode root maupun tidak...

mohon bantuannya gan :ubuntu: :(
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: <ask> Tugas Praktikum : crontab detik gmn caranya?

Postby q_p » 16 Apr 2013, 18:15

^
Betul detik ?
Kayaknya paling kecil satuannya menit mas ?

Code: Select all

# Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any').# # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command #minute (0-59) #| hour (0-23) #| | day of the month (1-31) #| | | month of the year (1-12 or Jan-Dec) #| | | | day of the week (0-6 with 0=Sun or Sun-Sat) #| | | | | commands #| | | | | | # #contoh setiap 1 menit menjalankan backup "user accounts" */1 * * * * tar -zcf /var/backups/home.tgz /home/
Mungkin yang di bawah, ada yang tahu merubahnya ke satuan detik :)
User avatar
uchil
Posts: 7
Joined: 16 Apr 2013, 17:57
Location: surabaya , indonesia

Re: <ask> Tugas Praktikum : crontab detik gmn caranya?

Postby uchil » 16 Apr 2013, 19:17

q cari satuan yg detik gan :)
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: <ask> Tugas Praktikum : crontab detik gmn caranya?

Postby q_p » 16 Apr 2013, 19:48

q cari satuan yg detik gan :)
Kalau begitu sebaiknya hasil pencaraian anda tsb, dikomunikasikan saja di sini mas :)
User avatar
nif
Posts: 2818
Joined: 31 Mar 2011, 07:48

Re: <ask> Tugas Praktikum : crontab detik gmn caranya?

Postby nif » 17 Apr 2013, 10:29

sependapat seperti om Pragola_Pati, cron tak bisa pake satuan detik.
mungkin bisa dibuat cron-nya dalam menit, lalu di dalamnya pake perulangan sleep tiap berapa detik.
User avatar
sta
Posts: 2003
Joined: 27 Apr 2010, 09:49
Contact:

Re: <ask> Tugas Praktikum : crontab detik gmn caranya?

Postby sta » 17 Apr 2013, 10:36

buat penjadwalan agar system dapat menghapus semua inputan dari terminal setia 30 detik secara permanent , baik dalam mode root maupun tidak...

mohon bantuannya gan :ubuntu: :(
maksudnya inputan di terminal itu apa yah?
apa maksudnya history
User avatar
uchil
Posts: 7
Joined: 16 Apr 2013, 17:57
Location: surabaya , indonesia

Re: <ask> Tugas Praktikum : crontab detik gmn caranya?

Postby uchil » 18 Apr 2013, 01:35

ya historynya gan

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests