[급합니다..~!!] 대문자 CROND가 뭔가요..

익명 사용자의 이미지

새벽 여섯시 마다 시스템 체크 쉘스크립트를 돌립니다
그런데 오늘아침은 메일이 두번 왔더군요
그래서 스크립트의 결과를 보니 ps -ef 의 결과에
아래와 같은게 있더군요..

crond가 fork()를 해서 CROND를 생성시켰는데 이게 뭐하는건지 모르겠거든요..
그리고 두번 fork()가 되어서 두번 쉘스크립트가 돌았던것 같던에..
혹시 아시는 분 계신가요..??
040 S root 8239 1 0 68 0 - 400 nanosl Feb18 ? 000000 crond
040 S root 20274 8239 0 69 0 - 400 pipe_w 0608 ? 000000 CROND
100 S root 20276 20274 0 69 0 - 491 wait4 0608 ? 000000 /bin/sh -c /root/bin/testh.sh 2>&1 | /bin/mail -s "[test] System Check" test@test.com
000 S root 20277 20276 0 76 0 - 492 wait4 0608 ? 000000 /bin/bash /root/bin/testh.sh
100 S root 20278 20276 0 69 0 - 383 pipe_w 0608 ? 000000 /bin/mail -s [test] System Check test@test.com
040 S root 20358 8239 0 69 0 - 400 pipe_w 0610 ? 000000 CROND
100 S root 20361 20358 0 69 0 - 491 wait4 0610 ? 000000 /bin/sh -c /root/bin/testh.sh 2>&1 | /bin/mail -s "[test] System Check" test@test.com
000 S root 20362 20361 0 69 0 - 492 wait4 0610 ? 000000 /bin/bash /root/bin/testh.sh
100 S root 20363 20361 0 69 0 - 383 pipe_w 0610 ? 000000 /bin/mail -s [test] System Check test@test.com
100 R root 20374 20362 99 79 0 - 2646 - 0610 ? 000143 /usr/lib/rpm/rpmv -V --all
000 S root 20375 20362 0 69 0 - 371 pipe_w 0610 ? 000000 grep ^..5
000 R root 20509 20277 0 74 0 - 772 - 0611 ? 000000 /bin/ps -efl
040 R root 20510 20277 0 75 0 - 492 - 0611 ? 000000 /bin/bash /root/bin/testh.sh

익명 사용자의 이미지

cron은 주기적으로 예약된 프로그램을 실행시켜주는 프로그램입니다.
주로 처음 리눅스를 접하시는 분들이 이런 혼란을 많이 이야기하시는데요
상관없습니다.
보통 새벽 4시에서 6시 사이에 하드디스크를 점검하는 프로그램이 실행됩
니다.
저도 그때 사무실에서 일하다가 놀라서 확인한 경험이 있는데 괜찮습니다.
만약 cron 작동하는 것이 싫으시다면 /etc 아래 cron으로 시작되는 디렉토
리에서 몇가지 작업을 변경하시거나 ntsysv 를 실행해서 cron설정을 해제
하시고
/etc/rc.d/init.d/cron stop
하시면 됩니다.

그렇지만 특별한 이유가 없는한 cron을 중지하지 마세요.
리눅스가 알아서 사용자가 적은 시간에 하드디스크의 자료등을 점검하는
것이인까요..

익명 사용자의 이미지

^^;;;;

익명 사용자의 이미지

죄송합니다. 잘 읽어보지 않고 일상적인 질문이려니 생각하고 그냥 글을 올렸네요..
crontab을 확인하는시는 것이 좋을 듯합니다.
글쎄요.. 저도 왜 cron이 두번 실행되었는지는...
아는척해서 죄송합니다. ^^; 헤헤헤

익명 사용자의 이미지

cron은 여러분들도 알다시피 복제인간,무성 생식시키다[하다]입니다
그래서 cron + d(데몬,서버) 자기자신스스로 어떤일을 하는 것입니다.

crond의 사용법을 공부하시려면 linuxim.pe.kr에서 QandA에 가 보세요
또 만약에 질문 있으면 거기에서 최선을 다해 답변 드리겠습니다.
저도 잘 알는 것은 아니지만....

익명 사용자의 이미지

두개의 스케줄이 겹쳐서 나오는 내용일꺼에요.

cron.hourly 의 시간과
cron.daily 의 시간대가 겹쳐서
두개의 데몬이 뜬것일겁니다.

-.ㅡ;

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.