View Full Version : a random line from the syslog...
heyyy
July 13th, 2009, 12:36 PM
i'm just curious about what does this line mean...
CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
prshah
July 13th, 2009, 12:39 PM
CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
execute the following command
check if /usr/sbin/update-motd exists (message of the day)
AND (if it exists, then)
execute it, and
redirect errors to null
Essentially, it probably updates the Message Of The Day (MOTD) which is displayed usually during logon.
JohnFH
July 13th, 2009, 01:11 PM
execute the following command
check if /usr/sbin/update-motd exists (message of the day)
AND (if it exists, then)
execute it, and
redirect errors to null
Essentially, it probably updates the Message Of The Day (MOTD) which is displayed usually during logon.
Slight correction: -x tests if the file is executable.
update-motd: https://wiki.ubuntu.com/UpdateMotd
heyyy
July 13th, 2009, 03:12 PM
so i guess its a default function from the system...but im still curious on what exactly does...? here are some more details
.... ... (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[9424]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[10002]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd hourly 2>/dev/null)
/USR/SBIN/CRON[10005]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[10759]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[11280]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
/USR/SBIN/CRON[11571]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[12235]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[12978]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[13695]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[14436]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd hourly 2>/dev/null)
/USR/SBIN/CRON[14439]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[15314]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[15926]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
/USR/SBIN/CRON[16222]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[17009]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[17783]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[18565]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
/USR/SBIN/CRON[19335]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd hourly 2>/dev/null)
/USR/SBIN/CRON[19338]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
......
JohnFH
July 13th, 2009, 03:23 PM
Did you read the link in my last post?
Here's another link: https://help.ubuntu.com/9.04/serverguide/C/update-motd.html
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.