èæ¯ cronã«ä»è¾¼ãã ãããã¯ãechoæã§ãã°ã»ã»ã»ããããã話ã§ãã ã¡ãã£ã¨ããé¢æ°ãç¨æãã¦ããã°ãã°ã¯æ¥½ã«åããã®ã§ãç§ã®ææ³ãè¨é²ãã¦ããã¾ãã 使ã£ã¦ããå¤æ°ã®ããã§ãbashéå®ã logé¢æ°ãã¤ãã ã³ã¼ã ãã£ã5è¡ã®ã³ã¼ãã 使ãåã« ã©ããã§LOGFILEå¤æ°ãè¨å®ããå¿ è¦ãããã ãã°ã¬ãã«ã¿ãããªä¾¿å©ãªã·ãã¢ãã¯ãªãã #!/bin/bash - # You must set 'LOGFILE' readonly PROCNAME=${0##*/} function log() { local fname=${BASH_SOURCE[1]##*/} echo -e "$(date '+%Y-%m-%dT%H:%M:%S') ${PROCNAME} (${fname}:${BASH_LINENO[0]}:${FUNCNAME[1]}) $@" | tee -a
{{#tags}}- {{label}}
{{/tags}}