Score:0

etc/update-motd.d added script which executes. But after change the old version is being executed

fr flag

My script executes OK. But when I altered it on login the old one is still executing instead of the amended one. Do I need to refresh/restart something (except system :) ) for my changes to be effective? (I ssh connect)

guiverc avatar
cn flag
Your question is rather clear; details in the title do **not** always show with some browser/setups (*not everyone uses large PCs or large screens!*) so you mention a script; no error message, and a rather unclear problem or question (just a *Do I need to refresh/restart* without a why that relates in your question text).
0___________ avatar
fr flag
@guiverc no errors simply after change the old version is still executing instead of the new one.
hr flag
AFAIK the contents should be updated automatically on each ssh login - provided you haven't altered the default /etc/pam.d/sshd file. If you want further help, I suggest you edit your question to include both the contents *and name* of the script, and the output of `grep motd /etc/pam.d/sshd`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.