寫入系統事件紀錄:
write event log for command line
write_log [str] [type] [msgid]
type: EVENTLOG_ERROR_TYPE=1
type: EVENTLOG_WARNING_TYPE=2
type: EVENTLOG_INFORMATION_TYPE=4
WARNING: write_log is deprecated and only for backward compatibility.
複製內容到剪貼板
代碼:
/sbin/write_log "[mysqldump] created database backup: db.sql.gz" 4